CI (MSYS2): Re-run failed tests verbosely.

This commit is contained in:
Markus Mützel 2023-04-24 18:32:03 +02:00
parent f334bd9041
commit 1c3fcaaf42
1 changed files with 13 additions and 0 deletions

View File

@ -287,9 +287,22 @@ jobs:
key: ${{ steps.ccache-prepare.outputs.key }} key: ${{ steps.ccache-prepare.outputs.key }}
- name: Run tests - name: Run tests
id: run-ctest
timeout-minutes: 60 timeout-minutes: 60
run: cd build && ctest run: cd build && ctest
- name: Re-run tests
if: always() && (steps.run-ctest.outcome == 'failure')
timeout-minutes: 60
run: |
cd build
echo "::group::Re-run ctest"
ctest --rerun-failed --output-on-failure || true
echo "::endgroup::"
echo "::group::Log from these tests"
[ ! -f Testing/Temporary/LastTest.log ] || cat Testing/Temporary/LastTest.log
echo "::endgroup::"
cross_build: cross_build:
runs-on: ubuntu-22.04 runs-on: ubuntu-22.04