Skip to content

Commit 8c82a5c

Browse files
committed
Update Test Suite
When the check-workflow-result script runs, it grabs the commandline parameters into variables. If the force fail flag is left out, we are checking the force fail variable if it is blank, and then fixing it. We should check the test suite variable if blank and clear the force fail and update the test suite.
1 parent b1a102e commit 8c82a5c

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

.github/scripts/check-workflow-result.sh

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,10 @@ TEST_SUITE="${3:-}"
3333
# Ensure TEST_RESULT is treated as a number
3434
TEST_RESULT=$((TEST_RESULT + 0))
3535

36-
# If force fail is empty treat second arg as test suite
37-
if [ -z "$WOLFPROV_FORCE_FAIL" ]; then
38-
TEST_SUITE="${2:-}"
36+
# If test suite is empty treat second arg as test suite
37+
if [ -z "$TEST_SUITE" ]; then
38+
TEST_SUITE=$WOLFPROV_FORCE_FAIL
39+
WOLFPROV_FORCE_FAIL=""
3940
fi
4041

4142
if [ "$WOLFPROV_FORCE_FAIL" = "WOLFPROV_FORCE_FAIL=1" ]; then

0 commit comments

Comments
 (0)