Skip to content

Commit

Permalink
Merge pull request #13 from ArSn/fix-catch-no-tests
Browse files Browse the repository at this point in the history
Extended condition to check if no tests were actually run, so it also works with the current GUT version.
  • Loading branch information
ceceppa authored Apr 22, 2024
2 parents 2735640 + 523748c commit 83e8b45
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion init-and-run-tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ TEMP_FILE=/tmp/gut.log
$GODOT_BIN -d -s $GODOT_PARAMS --path $PWD addons/gut/gut_cmdln.gd -gexit $GUT_PARAMS 2>&1 | tee $TEMP_FILE

# Godot always exists with error 0, but we want this action to fail in case of errors
if grep -q "No tests ran" "$TEMP_FILE";
if grep -q "No tests ran" "$TEMP_FILE" || grep -qE "Asserts\s+none" "$TEMP_FILE";
then
echo "No test ran. Please check your 'gut_params'"
exit 1
Expand Down

0 comments on commit 83e8b45

Please sign in to comment.