forked from golang/build
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
cmd/coordinator: find inner modules when testing repos
Previously, we were invoking a single 'go test' run at the repository root with the import path pattern of 'golang.org/x/{repo}/...'. This pattern does not match packages that are located in nested modules in the repository. Look for go.mod files in all subdirectories of the repository to find all inner modules. Then, run 'go test' inside each module root, thus testing all packages in all modules of the repository. If one of the test invocations fails, keep testing others, and report all failures. When looking for inner modules, consider only those that have module path that would not be ignored by the go tool and aren't vendored. This way, go.mod files inside testdata directories aren't treated as if they're proper modules. This is being done only when the tests are running in module mode, since module boundaries don't exist in GOPATH mode. Fixes golang/go#32528 Change-Id: I9f8558982885c9955d3b34127c80c485d713b380 Reviewed-on: https://go-review.googlesource.com/c/build/+/194559 Run-TryBot: Dmitri Shuralyov <dmitshur@golang.org> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
- Loading branch information
Showing
2 changed files
with
116 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters