From: Russ Cox Date: Mon, 24 Sep 2012 04:06:31 +0000 (-0400) Subject: test: minor fixes in run and testlib X-Git-Tag: go1.1rc2~2360 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=3cd890dd5a8e5be33ce6f65ab7690ba0e1c235ef;p=gostls13.git test: minor fixes in run and testlib Can tell this doesn't get run very often, but it is still important for when you've broken everything else. R=golang-dev, r CC=golang-dev https://golang.org/cl/6547065 --- diff --git a/test/run b/test/run index 29a7905f0a..d206312a29 100755 --- a/test/run +++ b/test/run @@ -54,6 +54,8 @@ true >pass.out >times.out exclude=false # exclude nothing golden=golden.out +rm -f tmp.go # generated by some tests, left behind if interrupted + filterout() { grep '^'"$2"'$' $1 >/dev/null } diff --git a/test/testlib b/test/testlib index 90f400dd89..29de7672ce 100644 --- a/test/testlib +++ b/test/testlib @@ -12,7 +12,7 @@ compile() { compiledir() { for gofile in $D/$F.dir/*.go do - $G ${gofile} || return 1 + $G -I. "$gofile" || return 1 done }