jjb: binutils-gdb: print known-failures that did not happen
authorSimon Marchi <simon.marchi@efficios.com>
Mon, 21 Mar 2022 19:05:40 +0000 (15:05 -0400)
committerSimon Marchi <simon.marchi@efficios.com>
Mon, 21 Mar 2022 19:27:59 +0000 (15:27 -0400)
Print the entries in known-failures that did not show up in the actual
failures.  This should help a bit with pruning expected failures that
are not longer expected.

Change-Id: Icf17536835a6e36af8520dbf19c987ef1f59f152

scripts/binutils-gdb/build.sh

index 64cc0051a84f4333af5091b43225841e55a89e14..8d27c52c48bfa48ccd1a81fe132079c0075b04fc 100755 (executable)
@@ -965,6 +965,15 @@ EOF
 known_failures_file="known-failures-${target_board}"
 grep --invert-match --fixed-strings --file="$known_failures_file"  "${WORKSPACE}/results/gdb.sum" > "${WORKSPACE}/results/gdb.filtered.sum"
 
+# For informational purposes: check if some known failure lines did not appear
+# in the gdb.sum.
+echo "Known failures that don't appear in gdb.sum:"
+while read line; do
+    if ! grep --silent --fixed-strings "$line" "${WORKSPACE}/results/gdb.sum"; then
+        echo "$line"
+    fi
+done < "$known_failures_file"
+
 # Convert results to JUnit format.
 failed_tests=0
 sum2junit "${WORKSPACE}/results/gdb.filtered.sum" "${WORKSPACE}/results/gdb.xml" || failed_tests=1
This page took 0.025311 seconds and 4 git commands to generate.