changeset 30821:f5587d651bc7 stable

GitHub-CI (windows): Fail CI if test suite on MINGW64 doesn't pass. * .github/workflows/make.yaml (windows): All tests on Windows 64-bit usually pass. Indicate an error in the CI result.
author Markus Mützel <markus.muetzel@gmx.de>
date Sat, 05 Mar 2022 11:27:03 +0100
parents c3d7c1ede44c
children 35b6f68c8e46 620607ec6608
files .github/workflows/make.yaml
diffstat 1 files changed, 8 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/.github/workflows/make.yaml	Thu Mar 03 16:15:06 2022 -0500
+++ b/.github/workflows/make.yaml	Sat Mar 05 11:27:03 2022 +0100
@@ -294,7 +294,7 @@
 
       - name: analyze test suite results
         # Make sure the test summary lists 0 "FAIL"s and no "REGRESSION"
-        run:  |
+        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"
           echo Finished analyzing test suite results.
@@ -523,7 +523,11 @@
 
       - 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"
+        env:
+          MSYSTEM: ${{ matrix.msystem }}
+        run: |
+          [ -n "$(grep -e "FAIL\s*0" ./test-suite.log)" ] || \
+            ( [[ $MSYSTEM = "MINGW64" ]] && exit 1 || echo "::warning::At least one test failed" )
+          [ -z "$(grep -e "REGRESSION" ./test-suite.log)" ] || \
+            ( [[ $MSYSTEM = "MINGW64" ]] && exit 1 || echo "::warning::At least one regression in test suite" )
           echo Finished analyzing test suite results.