Skip to content

Commit

Permalink
Only pass when the result specifically has the Passed string.
Browse files Browse the repository at this point in the history
  • Loading branch information
shichen85 committed May 10, 2024
1 parent f161220 commit 5348c97
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,9 @@ jobs:
- name: Parse the output and fail the run if the content contains the string `| Failed |`
if: runner.os == 'Linux'|| runner.os == 'macOS'
run: |
if grep -q "| Failed |" test_output.txt; then
if grep -q "| Passed |" test_output.txt; then
echo "Game loop test passed"
else
echo "Game loop test failed"
exit 1
fi
Expand Down

0 comments on commit 5348c97

Please sign in to comment.