1
0
mirror of https://github.com/chubin/cheat.sh.git synced 2026-06-20 13:16:44 +02:00

run-tests.sh: exitcode depends on the tests status

This commit is contained in:
Igor Chubin
2019-05-11 13:08:49 +02:00
parent d570870c0f
commit a47f11e802
+6 -2
View File
@@ -48,7 +48,7 @@ while read -r number test_line; do
if [ "$test_standalone" = YES ]; then
test_line="${test_line//cht.sh /}"
python ../lib/standalone.py "$test_line" > "$TMP" 2> /dev/null
"${PYTHON}" ../lib/standalone.py "$test_line" > "$TMP" 2> /dev/null
elif [[ $test_line = "cht.sh "* ]]; then
test_line="${test_line//cht.sh /}"
eval "bash $CHTSH_SCRIPT $test_line" > "$TMP"
@@ -69,4 +69,8 @@ done < "$TMP3"
echo TESTS/OK/FAILED "$i/$((i-failed))/$failed"
if [ "$failed" != 0 ]; then
exit 1
else
exit 0
fi