jjb: binutils-gdb: make sum2junit.py show failing tests
authorSimon Marchi <simon.marchi@efficios.com>
Mon, 21 Mar 2022 18:31:34 +0000 (14:31 -0400)
committerSimon Marchi <simon.marchi@efficios.com>
Mon, 21 Mar 2022 19:27:58 +0000 (15:27 -0400)
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

scripts/binutils-gdb/build.sh

index 5c737fc67d9857e7a3a3f3cd01073a4a43e5a404..e20899dbc84bebdb3dd15d4d7d8813f7f6670bea 100755 (executable)
@@ -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"):
This page took 0.037193 seconds and 4 git commands to generate.