summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRuss Cox <rsc@golang.org>2012-09-24 00:06:31 -0400
committerRuss Cox <rsc@golang.org>2012-09-24 00:06:31 -0400
commit7ea1eaee177e135dcaa14f3b3750c2cda7fa23ba (patch)
tree11219d51de8433f5cf73934b11c981cfd5210012
parentaf6fc658fed9ed8f601951c101f9fdcc38cca86a (diff)
downloadgo-7ea1eaee177e135dcaa14f3b3750c2cda7fa23ba.tar.gz
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 http://codereview.appspot.com/6547065
-rwxr-xr-xtest/run2
-rw-r--r--test/testlib2
2 files changed, 3 insertions, 1 deletions
diff --git a/test/run b/test/run
index 29a7905f0..d206312a2 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 90f400dd8..29de7672c 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
}