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:
parent
91549438d8
commit
4fd7a908bb
@ -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_"'
|
||||
|
Loading…
Reference in New Issue
Block a user