bugfix: modify the rules for unittest failure

This commit is contained in:
voidking 2024-01-08 16:17:53 +08:00
parent 1bce979073
commit 60d2575cbd

View file

@ -41,7 +41,7 @@ jobs:
- name: Show failed tests and overall summary
run: |
grep -E "FAILED tests|ERROR tests|[0-9]+ passed," unittest.txt
failed_count=$(grep "FAILED|ERROR" unittest.txt | wc -l)
failed_count=$(grep -E "FAILED|ERROR" unittest.txt | wc -l)
if [[ "$failed_count" -gt 0 ]]; then
echo "$failed_count failed lines found! Task failed."
exit 1