From d37a5acb57e84d9e79c10131d0eb0e916fc1da71 Mon Sep 17 00:00:00 2001 From: Gereon Kremer Date: Tue, 8 Mar 2022 02:29:03 +0100 Subject: [PATCH] Rerun failed tests in CI (#8258) This commit makes our CI rerun failed tests to have the error output at the bottom of the log. This simplifies retrieving the errors from CI logs. --- .github/actions/run-tests/action.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/actions/run-tests/action.yml b/.github/actions/run-tests/action.yml index 44c5ec9da..1498adfcd 100644 --- a/.github/actions/run-tests/action.yml +++ b/.github/actions/run-tests/action.yml @@ -20,7 +20,10 @@ runs: shell: bash run: | make -j${{ env.num_proc }} build-tests - ctest -j${{ env.num_proc }} --output-on-failure -LE regress[${{ inputs.regressions-exclude }}] + if ! ctest -j${{ env.num_proc }} --output-on-failure -LE regress[${{ inputs.regressions-exclude }}] + then + ctest --output-on-failure --rerun-failed + fi env: CVC5_REGRESSION_ARGS: --no-early-exit RUN_REGRESSION_ARGS: ${{ inputs.regressions-args }} -- 2.30.2