Skip to content

Commit

Permalink
Extended condition to check if no tests were actually run, so it also…
Browse files Browse the repository at this point in the history
… works with the current GUT version.
  • Loading branch information
ArSn committed Apr 20, 2024
1 parent 2735640 commit 523748c
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 523748c

Please sign in to comment.