From 4fd7a908bb5f904181cf7aaf3bcf6155c6ba5c8c Mon Sep 17 00:00:00 2001 From: Russ Cox Date: Wed, 7 Oct 2009 14:52:44 -0700 Subject: [PATCH] do not import testing twice when testing testing. R=r DELTA=3 (2 added, 0 deleted, 1 changed) OCL=35443 CL=35445 --- src/cmd/gotest/gotest | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/cmd/gotest/gotest b/src/cmd/gotest/gotest index c4c8e1a9e0..212abbf755 100755 --- a/src/cmd/gotest/gotest +++ b/src/cmd/gotest/gotest @@ -107,7 +107,9 @@ importpath=$(make -s importpath) echo # imports if echo "$tests" | egrep -v '_test\.' >/dev/null; then - echo 'import "'$importpath'"' + if [ "$importpath" != "testing" ]; then + echo 'import "'$importpath'"' + fi fi if $havex; then echo 'import "./_xtest_"' -- 2.48.1