Skip to content

Commit

Permalink
CI (MSYS2): Re-run failed tests verbosely.
Browse files Browse the repository at this point in the history
  • Loading branch information
mmuetzel committed Apr 24, 2023
1 parent f266f65 commit 46bfee6
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions .github/workflows/dynamic_arch.yml
Original file line number Diff line number Diff line change
Expand Up @@ -287,9 +287,22 @@ jobs:
key: ${{ steps.ccache-prepare.outputs.key }}

- name: Run tests
id: run-ctest
timeout-minutes: 60
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:
runs-on: ubuntu-22.04
Expand Down

0 comments on commit 46bfee6

Please sign in to comment.