ci/check-commit-log: Fix test failure count value

It grepped for an older version of the failure XML tag.

Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/1585>
This commit is contained in:
Jonas Ådahl 2020-11-20 16:37:01 +01:00
parent abdf467ad9
commit 4b32c92ec6

View File

@ -46,7 +46,7 @@ function append_passed_test_case() {
function generate_junit_report() { function generate_junit_report() {
junit_report_file="$1" junit_report_file="$1"
num_tests=$(cat "$JUNIT_REPORT_TESTS_FILE" | wc -l) num_tests=$(cat "$JUNIT_REPORT_TESTS_FILE" | wc -l)
num_failures=$(grep '<failure />' "$JUNIT_REPORT_TESTS_FILE" | wc -l ) num_failures=$(grep '<failure' "$JUNIT_REPORT_TESTS_FILE" | wc -l )
echo Generating JUnit report \"$(pwd)/$junit_report_file\" with $num_tests tests and $num_failures failures. echo Generating JUnit report \"$(pwd)/$junit_report_file\" with $num_tests tests and $num_failures failures.