Skip to content

Commit 1c3fcaa

Browse files
committed
CI (MSYS2): Re-run failed tests verbosely.
1 parent f334bd9 commit 1c3fcaa

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

.github/workflows/dynamic_arch.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -287,9 +287,22 @@ jobs:
287287
key: ${{ steps.ccache-prepare.outputs.key }}
288288

289289
- name: Run tests
290+
id: run-ctest
290291
timeout-minutes: 60
291292
run: cd build && ctest
292293

294+
- name: Re-run tests
295+
if: always() && (steps.run-ctest.outcome == 'failure')
296+
timeout-minutes: 60
297+
run: |
298+
cd build
299+
echo "::group::Re-run ctest"
300+
ctest --rerun-failed --output-on-failure || true
301+
echo "::endgroup::"
302+
echo "::group::Log from these tests"
303+
[ ! -f Testing/Temporary/LastTest.log ] || cat Testing/Temporary/LastTest.log
304+
echo "::endgroup::"
305+
293306
294307
cross_build:
295308
runs-on: ubuntu-22.04

0 commit comments

Comments
 (0)