summaryrefslogtreecommitdiff
path: root/.gitlab-ci
diff options
context:
space:
mode:
authorJonas Ådahl <jadahl@gmail.com>2020-11-20 16:37:01 +0100
committerJonas Ådahl <jadahl@gmail.com>2020-11-20 16:37:01 +0100
commit4b32c92ec6a3c6750dfb4184fea79bc0925d47e5 (patch)
treebeb799d5c29ebf6371c6c6d6a72fc4bb6c6b13f1 /.gitlab-ci
parentabdf467ad9cfb701b489c8129e193bb552df827e (diff)
downloadmutter-4b32c92ec6a3c6750dfb4184fea79bc0925d47e5.tar.gz
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>
Diffstat (limited to '.gitlab-ci')
-rwxr-xr-x.gitlab-ci/check-commit-log.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/.gitlab-ci/check-commit-log.sh b/.gitlab-ci/check-commit-log.sh
index b6ca39767..f2b9c36ef 100755
--- a/.gitlab-ci/check-commit-log.sh
+++ b/.gitlab-ci/check-commit-log.sh
@@ -46,7 +46,7 @@ function append_passed_test_case() {
function generate_junit_report() {
junit_report_file="$1"
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.