Skip to content

Commit ebb31ae

Browse files
committed
fix script
1 parent d41dc80 commit ebb31ae

1 file changed

Lines changed: 19 additions & 3 deletions

File tree

.github/workflows/it-test.yml

Lines changed: 19 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,23 @@ jobs:
136136
fi
137137
138138
- name: Check test results
139-
if: failure()
139+
if: always()
140+
shell: bash
140141
run: |
141-
echo "Job failed because some tests failed. Please check the logs above for details."
142-
exit 1
142+
# Check init tests
143+
if [ "${{ steps.run_init_tests_unix.outcome }}" = "failure" ]; then
144+
echo "::error::Init tests failed"
145+
FAILED=true
146+
fi
147+
148+
# Check tool tests
149+
if [ "${{ steps.run_tests.outcome }}" = "failure" ]; then
150+
echo "::error::Tool tests failed"
151+
FAILED=true
152+
fi
153+
154+
# Fail if any tests failed
155+
if [ "${FAILED:-false}" = "true" ]; then
156+
echo "Some tests failed. Please check the logs above for details."
157+
exit 1
158+
fi

0 commit comments

Comments
 (0)