Skip to content

Commit

Permalink
Fix script
Browse files Browse the repository at this point in the history
  • Loading branch information
federicotdn committed Jan 20, 2025
1 parent 8ee2f98 commit 6c7e376
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions scripts/run-tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,14 @@ for test in $TESTS; do
exit $exit_code
fi

jq .level --raw-output < $LOGS | grep -v error > /dev/null
# Only check error logs if logs file is not empty.
if [ ! -s $LOGS ]; then
jq .level --raw-output < $LOGS | grep -v error > /dev/null

exit_code=$?
if [ $exit_code -ne 0 ]; then
cat $LOGS
exit $exit_code
fi
exit_code=$?
if [ $exit_code -ne 0 ]; then
cat $LOGS
exit $exit_code
fi
fi
done

0 comments on commit 6c7e376

Please sign in to comment.