Mercurial > octave
diff .github/workflows/make.yaml @ 30816: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 | b39ecf7f45ce |
children | 35b6f68c8e46 0ffe2f9a19f3 |
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.