Browse code

More t_client.sh updates - exit with SKIP when we want to skip

Several places we exited with 0 instead of 77 when we want to indicate
that we should skip this test.

Signed-off-by: David Sommerseth <dazo@users.sourceforge.net>
Acked-by: Gert Doering <gert@greenie.muc.de>

David Sommerseth authored on 2010/08/19 00:05:09
Showing 1 changed files
... ...
@@ -36,12 +36,12 @@ fi
36 36
 
37 37
 if [ -z "$CA_CERT" ] ; then
38 38
     echo "CA_CERT not defined in 't_client.rc'. SKIP test." >&2
39
-    exit 0
39
+    exit 77
40 40
 fi
41 41
 
42 42
 if [ -z "$TEST_RUN_LIST" ] ; then
43 43
     echo "TEST_RUN_LIST empty, no tests defined.  SKIP test." >&2
44
-    exit 0
44
+    exit 77
45 45
 fi
46 46
 
47 47
 # make sure we have permissions to run ifconfig/route from OpenVPN
... ...
@@ -51,7 +51,7 @@ if expr "$ID" : "uid=0" >/dev/null
51 51
 then :
52 52
 else
53 53
     echo "$0: this test must run be as root. SKIP." >&2
54
-    exit 0
54
+    exit 77
55 55
 fi
56 56
 
57 57
 LOGDIR=t_client-`hostname`-`date +%Y%m%d-%H%M%S`