From 9d4d7d8f991ad3b27f223a2a987f2517971cd868 Mon Sep 17 00:00:00 2001 From: Roger Peppe Date: Tue, 12 Jan 2010 09:45:11 -0800 Subject: [PATCH] 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 --- src/cmd/gofmt/test.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/cmd/gofmt/test.sh b/src/cmd/gofmt/test.sh index d76d89becc0..59d5117b247 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