Files
kubernetes/third_party
Patrick Ohly 03a3288ddd tests: include stdout of failed commands in JUnit
All of the shell commands used by `make test-cmd` log success and
failures to stdout, e.g.:
   get.sh -> if_has_string ->
   2c9153576e/hack/lib/test.sh (L340-L360)

juLog captured stdout in addition to forwarding it to the overall test stdout,
but then only used it to check for text that indicates a problem. The result
was that after a test failure, the only thing visible in Spyglass was a fairly
useless "script error" generated by juLog for its own call chain. One had to
know that the entire build log contained more information and where to look for
it.

Now the stdout text is included in the JUnit file and thus visible when looking
at just one failed test. The output itself is still hard to read (contains one
line saying "FAIL!" and one has to know that the text below that line explains
the failure), but that is a different story.
2025-01-20 09:28:19 +01:00
..
2023-02-01 16:34:23 -05:00
2023-05-11 16:43:38 +00:00