cmd/go: test2json does not recognize test status if output did not end with new line #47032
Labels
FrozenDueToAge
GoCommand
cmd/go
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
Milestone
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
Yes
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
go test -json -run ^TestSetVariable$ github.com/go-delve/delve/service/dap
What did you expect to see?
I expected to see an event with "pass" action for the test that passed.
What did you see instead?
No event for the test.
test2json checks for lines beginning with:
(spaces)--- PASS:
, but in this test the last output from the test did not contain a new line, so the status message was appended to the same line, and it did not get parsed as a passing test.The text was updated successfully, but these errors were encountered: