Repository navigation
Feature results junit - #86
Conversation
| self.__late_signal__ = (signal, test) | ||
| return [] | ||
| else: | ||
| first = next_index(lines, f"<LAVA_SIGNAL_STARTTC {case}>") |
There was a problem hiding this comment.
You want to search with the full name from the log, before the 01_ is stripped... i.e. a board with 01_foo will then get the number stripped off. I believe the bug comes from here (as it wasnt there before)
There was a problem hiding this comment.
You are right, it searched without the number. should be fixed now. Thanks @bhcopeland
There was a problem hiding this comment.
Looks good now. Although when I re-ran it I saw a odd issue, the same test case name runs twice in one test, the second one can show the first one's result line in its log excerpt. The cause is that the TESTCASE line after a --shell case isn't cleared. Doesn't really seem a blocker though, but might as well see if you can reproduce/fix it your side?
There was a problem hiding this comment.
you are correct good catch @bhcopeland . should be fixed now
0c73344 to
f856afc
Compare
On the rpi4 the board runs ahead of LAVA, so the log excerpt of a test case got the output of the next one. Take the board output between STARTTC and ENDTC instead, and keep the rest for the next test cases. Without ENDTC, stop at the next STARTTC. Drop the TESTCASE line after ENDTC, so a later test case with the same name doesn't get it. Also match the whole TEST_CASE_ID, so boot doesn't match boot-kernel. Search for the name the board prints, like 01_foo, and not the name without the number. Signed-off-by: Anders Roxell <anders.roxell@linaro.org>
Many CI systems can show the test cases of a job from a JUnit XML file. A test without results, like when the board doesn't boot, is an error. The measurement and the log excerpt go into system-out. With "-" the XML goes to stdout. Suggested-by: Rémi Duraffort <remi.duraffort@linaro.org> Signed-off-by: Anders Roxell <anders.roxell@linaro.org>
f856afc to
6bdb2bd
Compare
Add --results-junit, to write the results as JUnit XML. Many CI systems
can show the test cases from it.
A test without results, like when the board doesn't boot, is an error.
The measurement and the log excerpt go into system-out, and with "-"
the XML goes to stdout. See docs/outputs.md.