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



commit 4b32c92ec6a3c6750dfb4184fea79bc0925d47e5
Author: Jonas Ã…dahl <jadahl gmail com>
Date:   Fri Nov 20 16:37:01 2020 +0100

    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>

 .gitlab-ci/check-commit-log.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/.gitlab-ci/check-commit-log.sh b/.gitlab-ci/check-commit-log.sh
index b6ca397674..f2b9c36ef0 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.
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]