Skip to content

Commit

Permalink
Catch non-zero
Browse files Browse the repository at this point in the history
  • Loading branch information
RafikFarhad committed Nov 12, 2023
1 parent ad52c44 commit f6517fc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/entrypoint-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,12 +26,12 @@ jobs:
INPUT_STYLE: "LLVM"
run: |
./entrypoint.sh | tee output || true
grep -q "Checking file: ./examples/file1.c" output; ret=$?
grep -q "Checking file: ./examples/file1.c" output; ret=$? || true
if [ $ret -ne 0 ]; then
echo "file1.c should be checked"
exit 8
fi
grep -q "Checking file: ./examples/file2.c" output; ret=$?
grep -q "Checking file: ./examples/file2.c" output; ret=$? || true
if [ $ret -eq 0 ]; then
echo "file2.c should not be checked"
exit 9
Expand Down

0 comments on commit f6517fc

Please sign in to comment.