-
Notifications
You must be signed in to change notification settings - Fork 17.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
cmd/go: print finally FAIL if a test has failed in package list mode
Fixes #30507 Change-Id: Ic598e4d5f71c624fcde051982bf85533e2f18e8d Reviewed-on: https://go-review.googlesource.com/c/go/+/170948 Reviewed-by: Bryan C. Mills <[email protected]> Run-TryBot: Bryan C. Mills <[email protected]> TryBot-Result: Gobot Gobot <[email protected]>
- Loading branch information
1 parent
23f3ea8
commit 3def99a
Showing
4 changed files
with
42 additions
and
3 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
env GO111MODULE=off | ||
|
||
! go test x y | ||
stdout ^FAIL\s+x | ||
stdout ^ok\s+y | ||
stdout (?-m)FAIL\n$ | ||
|
||
-- x/x_test.go -- | ||
package x | ||
|
||
import "testing" | ||
|
||
func TestNothingJustFail(t *testing.T) { | ||
t.Fail() | ||
} | ||
|
||
-- y/y_test.go -- | ||
package y |