Commit 9ed679ea511212ff81bc4dadb020d8b1371d4633

Steffen Jaeckel 2019-03-24T23:31:56

use appropriate bash exit code

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
diff --git a/testme.sh b/testme.sh
index e2203f2..520de18 100755
--- a/testme.sh
+++ b/testme.sh
@@ -4,6 +4,7 @@
 #   0  success
 # 128  a test failed
 #  >0  the number of timed-out tests
+# 255  parsing of parameters failed
 
 set -e
 
@@ -202,7 +203,7 @@ do
       if ! [ "$TEST_VS_MTEST" -eq "$TEST_VS_MTEST" ] 2> /dev/null
       then
          echo "--test-vs-mtest Parameter has to be int"
-         exit -1
+         exit 255
       fi
     ;;
     --mtest-real-rand)