From 0d0875d994b7bfbbdcc758b3f7238e01c070af51 Mon Sep 17 00:00:00 2001 From: Jim Edwards Date: Wed, 20 Nov 2024 10:49:48 -0700 Subject: [PATCH] work on return code --- .github/workflows/build.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index 2759d422c..e05a0d9ee 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -28,9 +28,9 @@ jobs: - name: check status run: | cd $SCRATCH - ./cs.status.${GITHUB_RUN_ID}${{ inputs.compiler }} --expected-fails-file $GITHUB_WORKSPACE/cime_config/testfiles/ExpectedTestFails.xml --fails-only | grep FAIL | grep -v FAILURE + ./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 - echo "Error" + exit 1 fi exit 0 \ No newline at end of file