Skip to content

Commit

Permalink
exit is complicated
Browse files Browse the repository at this point in the history
  • Loading branch information
jedwards4b committed Nov 20, 2024
1 parent 486ae2a commit 0c1ec5a
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,6 @@ jobs:
- name: check status
run: |
cd $SCRATCH
./cs.status.${GITHUB_RUN_ID}${{ inputs.compiler }} --expected-fails-file $GITHUB_WORKSPACE/cime_config/testfiles/ExpectedTestFails.xml | grep FAIL | grep -v FAILURE
retval=$?
if [ $retval -eq 0 ]; then
exit 1
fi
exit 0
# if no fails and no passes in expected fails then exit 0 otherwise exit 1
./cs.status.${GITHUB_RUN_ID}${{ inputs.compiler }} --expected-fails-file $GITHUB_WORKSPACE/cime_config/testfiles/ExpectedTestFails.xml | grep FAIL | grep -v FAILURE || exit 0
exit 1

0 comments on commit 0c1ec5a

Please sign in to comment.