mirror of
https://github.com/golang/go
synced 2024-11-21 16:14:42 -07:00
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
This commit is contained in:
parent
46206c52e3
commit
9d4d7d8f99
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user