Skip to content

Commit

Permalink
Ensure that test script is re-run on failure (fixes intended behavior)
Browse files Browse the repository at this point in the history
  • Loading branch information
langmm committed Aug 26, 2021
1 parent af33bbc commit 4edfba0
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
10 changes: 10 additions & 0 deletions .github/workflows/test-install.yml
Original file line number Diff line number Diff line change
Expand Up @@ -265,6 +265,7 @@ jobs:
./run_mpi.sh
'
continue-on-error: true
- name: Re-run test script failures (1st)
if: ${{ steps.test1_script.outcome == 'failure' }}
run: 'yggtest --ci --cov-append ${{ matrix.test-flags1 }} --last-failed --last-failed-no-failures=none
Expand Down Expand Up @@ -292,6 +293,7 @@ jobs:
./run_mpi.sh
'
continue-on-error: true
- name: Re-run test script failures (2nd)
if: ${{ steps.test2_script.outcome == 'failure' }}
run: 'yggtest --ci --cov-append ${{ matrix.test-flags2 }} --last-failed --last-failed-no-failures=none
Expand Down Expand Up @@ -590,6 +592,7 @@ jobs:
./run_mpi.sh
'
continue-on-error: true
- name: Re-run test script failures (1st)
if: ${{ steps.test1_script.outcome == 'failure' }}
run: 'yggtest --ci --cov-append ${{ matrix.test-flags1 }} --last-failed --last-failed-no-failures=none
Expand Down Expand Up @@ -617,6 +620,7 @@ jobs:
./run_mpi.sh
'
continue-on-error: true
- name: Re-run test script failures (2nd)
if: ${{ steps.test2_script.outcome == 'failure' }}
run: 'yggtest --ci --cov-append ${{ matrix.test-flags2 }} --last-failed --last-failed-no-failures=none
Expand Down Expand Up @@ -891,6 +895,7 @@ jobs:
./run_mpi.sh
'
continue-on-error: true
- name: Re-run test script failures (1st)
if: ${{ steps.test1_script.outcome == 'failure' }}
run: 'yggtest --ci --cov-append ${{ matrix.test-flags1 }} --last-failed --last-failed-no-failures=none
Expand Down Expand Up @@ -918,6 +923,7 @@ jobs:
./run_mpi.sh
'
continue-on-error: true
- name: Re-run test script failures (2nd)
if: ${{ steps.test2_script.outcome == 'failure' }}
run: 'yggtest --ci --cov-append ${{ matrix.test-flags2 }} --last-failed --last-failed-no-failures=none
Expand Down Expand Up @@ -1194,6 +1200,7 @@ jobs:
./run_mpi.sh
'
continue-on-error: true
- name: Re-run test script failures (1st)
if: ${{ steps.test1_script.outcome == 'failure' }}
run: 'yggtest --ci --cov-append ${{ matrix.test-flags1 }} --last-failed --last-failed-no-failures=none
Expand Down Expand Up @@ -1221,6 +1228,7 @@ jobs:
./run_mpi.sh
'
continue-on-error: true
- name: Re-run test script failures (2nd)
if: ${{ steps.test2_script.outcome == 'failure' }}
run: 'yggtest --ci --cov-append ${{ matrix.test-flags2 }} --last-failed --last-failed-no-failures=none
Expand Down Expand Up @@ -1496,6 +1504,7 @@ jobs:
./run_mpi.sh
'
continue-on-error: true
- name: Re-run test script failures (1st)
if: ${{ steps.test1_script.outcome == 'failure' }}
run: 'yggtest --ci --cov-append ${{ matrix.test-flags1 }} --last-failed --last-failed-no-failures=none
Expand Down Expand Up @@ -1523,6 +1532,7 @@ jobs:
./run_mpi.sh
'
continue-on-error: true
- name: Re-run test script failures (2nd)
if: ${{ steps.test2_script.outcome == 'failure' }}
run: 'yggtest --ci --cov-append ${{ matrix.test-flags2 }} --last-failed --last-failed-no-failures=none
Expand Down
2 changes: 2 additions & 0 deletions utils/test-install-base.yml
Original file line number Diff line number Diff line change
Expand Up @@ -276,6 +276,7 @@ jobs:
run: |
yggtest --ci --cov-append ${{ matrix.test-flags1 }}
./run_mpi.sh
continue-on-error: true
- name: Re-run test script failures (1st)
if: ${{ steps.test1_script.outcome == 'failure' }}
run: |
Expand All @@ -295,6 +296,7 @@ jobs:
run: |
yggtest --ci --cov-append ${{ matrix.test-flags2 }}
./run_mpi.sh
continue-on-error: true
- name: Re-run test script failures (2nd)
if: ${{ steps.test2_script.outcome == 'failure' }}
run: |
Expand Down

0 comments on commit 4edfba0

Please sign in to comment.