summaryrefslogtreecommitdiff
path: root/.gitlab-ci
diff options
context:
space:
mode:
authorJonas Ådahl <jadahl@gmail.com>2020-11-20 17:34:19 +0100
committerJonas Ådahl <jadahl@gmail.com>2020-11-20 17:34:19 +0100
commit408c922148d15b61322a98ecdd9653b9eaa8a947 (patch)
treef0925ed185fe922cc9a6649c1648ebaceb378ceb /.gitlab-ci
parent2e976cd9bff69872a72d8701b726a15813c3114b (diff)
downloadgnome-shell-408c922148d15b61322a98ecdd9653b9eaa8a947.tar.gz
ci: Fix check-commit-log test failure count
Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1505>
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 00fd89388..ac74b9bdc 100755
--- a/.gitlab-ci/check-commit-log.sh
+++ b/.gitlab-ci/check-commit-log.sh
@@ -38,7 +38,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.