Generate the "gdb.fail.sum" file, containing the failures that have
caused the build to fail. This is a bit nicer to read than the
converted JUnit summary parsed by Jenkins, as it's in the usual ".sum"
format GDB developers are used to.
Change-Id: Id71304b1d51a55fdd4fe3072abd6f97ceaa34970
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"
+grep --extended-regexp --regexp="^(FAIL|XPASS|UNRESOLVED|DUPLICATE):" "${WORKSPACE}/results/gdb.filtered.sum" > "${WORKSPACE}/results/gdb.fail.sum" || true
# For informational purposes: check if some known failure lines did not appear
# in the gdb.sum.