mirror of
https://github.com/golang/go.git
synced 2025-05-05 15:43:04 +00:00
cmd/go: allow either test to complete first in TestScript/test_chatty_parallel_success_run
This fixes a failure mode observed in https://build.golang.org/log/7b28a914b1914dabe94f7c4e36ad6466ebd4de5d, in which the expected CONT lines are present but the test completions are reported in a different (but valid) order. CONT lines are only printed between interleaved output lines, so if the ordering of the tests swaps after all output is already generated the PASS lines can be in arbitrary order. Fixes #51221 (again). Change-Id: I051f8ec4331e2e3ab1bb00a7c188c322ad4e0a03 Reviewed-on: https://go-review.googlesource.com/c/go/+/397194 Trust: Bryan Mills <bcmills@google.com> Run-TryBot: Bryan Mills <bcmills@google.com> TryBot-Result: Gopher Robot <gobot@golang.org> Reviewed-by: Ian Lance Taylor <iant@golang.org>
This commit is contained in:
parent
bdd0f0f780
commit
825309962f
@ -2,7 +2,7 @@
|
||||
# multiple parallel outputs have the appropriate CONT lines between them.
|
||||
go test -parallel 3 chatty_parallel -v
|
||||
|
||||
stdout '=== RUN TestInterruptor/interruption\n=== CONT TestLog\n chatty_parallel_test.go:28: this is the second TestLog log\n--- PASS: TestLog \([0-9.]{4}s\)'
|
||||
stdout '=== RUN TestInterruptor/interruption\n=== CONT TestLog\n chatty_parallel_test.go:28: this is the second TestLog log\n--- PASS: Test(Log|Interruptor) \([0-9.]{4}s\)'
|
||||
|
||||
-- go.mod --
|
||||
module chatty_parallel
|
||||
|
Loading…
x
Reference in New Issue
Block a user