1
0
mirror of https://github.com/golang/go synced 2024-11-12 09:30:25 -07:00

do not import testing twice when testing testing.

R=r
DELTA=3  (2 added, 0 deleted, 1 changed)
OCL=35443
CL=35445
This commit is contained in:
Russ Cox 2009-10-07 14:52:44 -07:00
parent 91549438d8
commit 4fd7a908bb

View File

@ -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_"'