From: Roger Peppe Date: Tue, 12 Jan 2010 17:45:11 +0000 (-0800) Subject: Fix bug that prevented the gofmt test script being run on more X-Git-Tag: weekly.2010-01-13~21 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=9d4d7d8f991ad3b27f223a2a987f2517971cd868;p=gostls13.git Fix bug that prevented the gofmt test script being run on more than one explicitly named file. R=rsc, gri CC=golang-dev https://golang.org/cl/186095 --- diff --git a/src/cmd/gofmt/test.sh b/src/cmd/gofmt/test.sh index d76d89becc..59d5117b24 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