From: Simon Marchi Date: Mon, 21 Mar 2022 18:31:34 +0000 (-0400) Subject: jjb: binutils-gdb: make sum2junit.py show failing tests X-Git-Url: http://git.lttng.org./?a=commitdiff_plain;h=6e30c08a86190b6c94e4a9a1f4824846a27cbe03;p=lttng-ci.git jjb: binutils-gdb: make sum2junit.py show failing tests Make the Python script output tests names that are in a failing state. This is in the same format as the known-failures file, so it makes it easy to copy paste an entry from a build log to the known-failures. Change-Id: Id76514a0ba2e624eca876d477554c069f814c5ce --- diff --git a/scripts/binutils-gdb/build.sh b/scripts/binutils-gdb/build.sh index 5c737fc..e20899d 100755 --- a/scripts/binutils-gdb/build.sh +++ b/scripts/binutils-gdb/build.sh @@ -83,9 +83,11 @@ for line in sys.stdin: if state in ("PASS", "XFAIL", "KFAIL"): pass_count += 1 elif state in ("FAIL", "XPASS"): + print("{}: {}".format(state, testcase_name), file=sys.stderr) fail_count += 1 SubElement(testcase, "failure", {"type": state}) elif state in ("UNRESOLVED", "DUPLICATE"): + print("{}: {}".format(state, testcase_name), file=sys.stderr) error_count += 1 SubElement(testcase, "error", {"type": state}) elif state in ("UNTESTED", "UNSUPPORTED"):