1
0
mirror of https://github.com/golang/go synced 2024-11-22 00:34:40 -07:00

cmd/go: skipping relative paths on go test -i ./...

Fixes #3896.

R=rsc, rogpeppe, r
CC=golang-dev
https://golang.org/cl/6457075
This commit is contained in:
Francisco Souza 2012-08-15 07:32:49 -07:00 committed by Rob Pike
parent 27cb1cbb2e
commit 34976b985a
2 changed files with 9 additions and 1 deletions

View File

@ -76,6 +76,12 @@ if ! ./testgo test ./testdata/testimport; then
ok=false
fi
# Test installation with relative imports.
if ! ./testgo test -i ./testdata/testimport; then
echo "go test -i ./testdata/testimport failed"
ok=false
fi
# Test tests with relative imports in packages synthesized
# from Go files named on the command line.
if ! ./testgo test ./testdata/testimport/*.go; then

View File

@ -276,7 +276,9 @@ func runTest(cmd *Command, args []string) {
all := []string{}
for path := range deps {
all = append(all, path)
if !build.IsLocalImport(path) {
all = append(all, path)
}
}
sort.Strings(all)