From: Simon Marchi Date: Mon, 21 Mar 2022 19:05:40 +0000 (-0400) Subject: jjb: binutils-gdb: print known-failures that did not happen X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=f204fdf124d38c151e7b904e7e8cc05ffe419136;p=lttng-ci.git jjb: binutils-gdb: print known-failures that did not happen 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 --- diff --git a/scripts/binutils-gdb/build.sh b/scripts/binutils-gdb/build.sh index 64cc005..8d27c52 100755 --- a/scripts/binutils-gdb/build.sh +++ b/scripts/binutils-gdb/build.sh @@ -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