Skip to content

Commit 13d5b99

Browse files
Write an outcome file line for every component
This should make failures.csv on the CI be a complete list of failures (although it will still have incomplete information on what has failed, if what failed wasn't tracked individually). Signed-off-by: Gilles Peskine <Gilles.Peskine@arm.com>
1 parent ee676d2 commit 13d5b99

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

tests/scripts/all-core.sh

+19
Original file line numberDiff line numberDiff line change
@@ -790,6 +790,19 @@ pre_prepare_outcome_file () {
790790
fi
791791
}
792792
793+
## write_outcome_line SUITE CASE RESULT [CAUSE]
794+
## Write a line in the outcome file if enabled.
795+
## Report $MBEDTLS_TEST_PLATFORM, $MBEDTLS_TEST_CONFIGURATION and the
796+
## supplied arguments.
797+
write_outcome_line () {
798+
if [ -z "$MBEDTLS_TEST_OUTCOME_FILE" ]; then
799+
return
800+
fi
801+
printf '%s;%s;%s;%s;%s;%s\n' >>"$MBEDTLS_TEST_OUTCOME_FILE" \
802+
"$MBEDTLS_TEST_PLATFORM" "$MBEDTLS_TEST_CONFIGURATION" \
803+
"$1" "$2" "$3" "${4-}"
804+
}
805+
793806
pre_print_configuration () {
794807
if [ $QUIET -eq 1 ]; then
795808
return
@@ -983,6 +996,12 @@ run_component () {
983996
fi
984997
fi
985998
999+
if [ $component_status -eq 0 ]; then
1000+
write_outcome_line "all.sh" "whole" "PASS"
1001+
else
1002+
write_outcome_line "all.sh" "whole" "FAIL" "$component_status"
1003+
fi
1004+
9861005
# Restore the build tree to a clean state.
9871006
cleanup
9881007
unset current_component

0 commit comments

Comments
 (0)