changeset 32643:f75f2abe189c stable

GitHub-CI (mingw): Mark run as failed on unexpected test suite error. * .github/workflows/make.yaml (mingw): We have 0 FAILs or REGRESSIONs for the MinGW environments we test on the stable branch. Mark the test run as failed if that should regress.
author Markus Mützel <markus.muetzel@gmx.de>
date Sat, 23 Dec 2023 14:11:10 +0100
parents 9e411598e820
children 60816c9cd277 475939906cbb
files .github/workflows/make.yaml
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/.github/workflows/make.yaml	Fri Dec 22 22:57:20 2023 +0100
+++ b/.github/workflows/make.yaml	Sat Dec 23 14:11:10 2023 +0100
@@ -796,8 +796,8 @@
       - name: analyze test suite results
         # Make sure the test summary lists 0 "FAIL"s and no "REGRESSION"
         run: |
-          [ -n "$(grep -e "FAIL\s*0" ./test-suite.log)" ] || echo "::warning::At least one test failed"
-          [ -z "$(grep -e "REGRESSION" ./test-suite.log)" ] || echo "::warning::At least one regression in test suite"
+          [ -n "$(grep -e "FAIL\s*0" ./test-suite.log)" ] || (echo "::warning::At least one test failed" && exit 1)
+          [ -z "$(grep -e "REGRESSION" ./test-suite.log)" ] || (echo "::warning::At least one regression in test suite" && exit 1)
           echo Finished analyzing test suite results.
 
       - name: test history file creation