Skip to content

Commit 3811331

Browse files
committed
test: 🔥 only run gut_cmdln.gd
gut returns exit code 1 if a test fails
1 parent 90184e3 commit 3811331

File tree

1 file changed

+1
-14
lines changed

1 file changed

+1
-14
lines changed

test/run_tests.sh

Lines changed: 1 addition & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1 @@
1-
$1 -d -s --path $PWD addons/gut/gut_cmdln.gd | ( no_error="false"; while read -r line
2-
do
3-
echo "$line"
4-
if echo "$line" | grep -q "All tests passed"; then
5-
no_error="true"
6-
fi
7-
done
8-
if [[ "$no_error" == "true" ]]; then
9-
exit 0
10-
else
11-
echo "ERROR: Some assertions failed !"
12-
exit 1
13-
fi
14-
); exit $?
1+
$1 -d -s --path $PWD addons/gut/gut_cmdln.gd

0 commit comments

Comments
 (0)