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:
parent
27cb1cbb2e
commit
34976b985a
@ -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
|
||||
|
@ -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)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user