Skip to content

Commit

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

0 comments on commit 35b04c4

Please sign in to comment.