commit 76ed185ffc8d25ba73510bfbc30547aa5c756e4b
parent bdf7000c91d00282d7bc5595459458abbbbbe4df
Author: Antoine Amarilli <a3nm@a3nm.net>
Date: Thu, 15 Aug 2019 15:29:24 +0200
return value for test script
Diffstat:
1 file changed, 4 insertions(+), 0 deletions(-)
diff --git a/test.sh b/test.sh
@@ -26,11 +26,15 @@ sort test_expected_output.out > test_expected_sorted.txt;
if [ $(python3 compare_test_output.py test_temp_sorted.txt test_expected_sorted.txt | wc -l) -eq 1 ]; then
echo "TEST SUCCEED";
+ RET=0
else
echo "TEST FAILED";
+ RET=1
diff test_temp_sorted.txt test_expected_sorted.txt
fi
rm -f test_temp.txt;
rm -f test_temp_sorted.txt;
rm -f test_expected_sorted.txt
+
+exit "$RET"