diff options
| author | Roger Peppe <rogpeppe@gmail.com> | 2010-01-12 09:45:11 -0800 |
|---|---|---|
| committer | Roger Peppe <rogpeppe@gmail.com> | 2010-01-12 09:45:11 -0800 |
| commit | 71156986095f0bebbc900f0eaf0a1da3724579e6 (patch) | |
| tree | 4b5fac28016702b681def09b6eed83a57468ac84 /src | |
| parent | b53d3e5a5b414f7db20741e688d807002d596a35 (diff) | |
| download | golang-71156986095f0bebbc900f0eaf0a1da3724579e6.tar.gz | |
Fix bug that prevented the gofmt test script being run on more
than one explicitly named file.
R=rsc, gri
CC=golang-dev
http://codereview.appspot.com/186095
Committer: Robert Griesemer <gri@golang.org>
Diffstat (limited to 'src')
| -rwxr-xr-x | src/cmd/gofmt/test.sh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/cmd/gofmt/test.sh b/src/cmd/gofmt/test.sh index d76d89bec..59d5117b2 100755 --- a/src/cmd/gofmt/test.sh +++ b/src/cmd/gofmt/test.sh @@ -129,7 +129,7 @@ runtest() { runtests() { - if [ "$@" = "" ]; then + if [ $# = 0 ]; then runtest apply # verify the pretty-printed files can be compiled with $GC again # do it in local directory only because of the prerequisites required @@ -146,7 +146,7 @@ runtests() { # run over all .go files -runtests "$*" +runtests "$@" cleanup # done |
