From aae68e002af81062fcd2f9f5f8e6258e83e72b8c Mon Sep 17 00:00:00 2001 From: jaredb96 Date: Mon, 1 Jul 2024 09:59:38 -0400 Subject: [PATCH] Add check for setup error in yml. --- .github/workflows/run-tests.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/run-tests.yml b/.github/workflows/run-tests.yml index dfea073581..63a3400384 100644 --- a/.github/workflows/run-tests.yml +++ b/.github/workflows/run-tests.yml @@ -27,8 +27,8 @@ jobs: - name: Check Test Results run: | - if [ $(cat log-file | grep -E "TEST FAILED|TESTS FAILED|Failed tests" | wc -l) -gt 0 ]; then - echo "Unit tests failed." + if [ $(cat log-file | grep -E "TEST FAILED|TESTS FAILED|Failed tests|Process completed with exit code 1" | wc -l) -gt 0 ]; then + echo "Unit tests failed or error occurred during setup." exit 1 else echo "Unit tests passed."