fix(ci): fix additional gut test success condition

Was missing `grep -q`, also adds an additional check for when no tests
were run whatsoever.
This commit is contained in:
Leroy Hopson 2024-03-03 21:14:00 +13:00
parent 71df1e71bd
commit fc03595e29
No known key found for this signature in database
GPG key ID: D2747312A6DB51AA

View file

@ -308,7 +308,7 @@ jobs:
# This step often passes when it shouldn't, due to GUT not failing on script errors # This step often passes when it shouldn't, due to GUT not failing on script errors
# (see: https://github.com/bitwes/Gut/issues/210). Therefore, we check the output # (see: https://github.com/bitwes/Gut/issues/210). Therefore, we check the output
# for expected (and unexpected) strings. # for expected (and unexpected) strings.
if 'SCRIPT_ERROR:' output.log; then if grep -q 'SCRIPT_ERROR:' output.log || grep -q 'Tests none' output.log; then
exit 1 exit 1
fi fi