We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4ca126c commit eac3e15Copy full SHA for eac3e15
.github/workflows/integration-test.yml
@@ -266,9 +266,8 @@ jobs:
266
run: |
267
echo "Failed Tests in ${{ matrix.integration.name }}"
268
if [[ -f test_output.log ]]; then
269
- # Count only test failure lines and avoid duplicate "0" outputs
270
- failed_count=$(grep -E '^--- FAIL:' test_output.log | wc -l | tr -d '[:space:]')
271
- failed_count=${failed_count:-0}
+ # Count only test failure lines in a way that is safe with -e -o pipefail
+ failed_count=$(grep -E -c '^--- FAIL:' test_output.log || echo 0)
272
echo "Failed tests count: $failed_count"
273
if [[ "${failed_count}" -gt 0 ]]; then
274
echo "Failed test names:"
0 commit comments