Skip to content

Report external ar tool output on TestWriteValidArchive failure#18

Merged
chrisnovakovic merged 2 commits intoplease-build:masterfrom
chrisnovakovic:writer-test-cmd-output
Oct 8, 2025
Merged

Report external ar tool output on TestWriteValidArchive failure#18
chrisnovakovic merged 2 commits intoplease-build:masterfrom
chrisnovakovic:writer-test-cmd-output

Conversation

@chrisnovakovic
Copy link

It's not very helpful seeing

Failure:  in TestWriteValidArchive/GNU_ar
writer_test.go:126:
        	Error Trace:
        	Error:      	Received unexpected error:
        	            	exit status 1
        	Test:       	TestWriteValidArchive/GNU_ar

when one of the TestWriteValidArchive subtests fails. Additionally report what the tool printed on stderr and stdout to make the nature of the failure more obvious.

It's not very helpful seeing

```
Failure:  in TestWriteValidArchive/GNU_ar
writer_test.go:126:
        	Error Trace:
        	Error:      	Received unexpected error:
        	            	exit status 1
        	Test:       	TestWriteValidArchive/GNU_ar
```

when one of the `TestWriteValidArchive` subtests fails. Additionally
report what the tool printed on stderr and stdout to make the nature of
the failure more obvious.
@chrisnovakovic chrisnovakovic merged commit 4a82d1c into please-build:master Oct 8, 2025
2 checks passed
@chrisnovakovic chrisnovakovic deleted the writer-test-cmd-output branch October 8, 2025 16:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants