Skip to content

Commit 1947c79

Browse files
committed
fix(ci): Prevent bash errexit from failing on counter increment
The `((passed++))` syntax returns 0 (false) when passed=0, which causes bash -e to exit the script. Use $((passed + 1)) instead which always succeeds.
1 parent dfa0e83 commit 1947c79

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/integration-tests.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -297,10 +297,10 @@ jobs:
297297
298298
if ./integration-testing/scripts/run-integration-tests.sh "$test"; then
299299
echo "PASSED: $test"
300-
((passed++))
300+
passed=$((passed + 1))
301301
else
302302
echo "FAILED: $test"
303-
((failed++))
303+
failed=$((failed + 1))
304304
failed_tests="$failed_tests\n - $test"
305305
fi
306306

0 commit comments

Comments
 (0)