aboutsummaryrefslogtreecommitdiff
path: root/t_client.sh.in
diff options
context:
space:
mode:
authorDavid Sommerseth <dazo@users.sourceforge.net>2010-08-18 17:05:09 +0200
committerDavid Sommerseth <dazo@users.sourceforge.net>2010-10-21 11:40:36 +0200
commit6f1e61b41be52fd0e7f4655ebc3000f63254aede (patch)
tree747ed202bc286f3dc069b276723a5c0f6b5b346a /t_client.sh.in
parentTest framework improvment - Do not FAIL if t_client.rc is missing (diff)
downloadopenvpn-6f1e61b41be52fd0e7f4655ebc3000f63254aede.tar.xz
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>
Diffstat (limited to 't_client.sh.in')
-rwxr-xr-xt_client.sh.in6
1 files changed, 3 insertions, 3 deletions
diff --git a/t_client.sh.in b/t_client.sh.in
index d3a4295..b273964 100755
--- a/t_client.sh.in
+++ b/t_client.sh.in
@@ -36,12 +36,12 @@ fi
if [ -z "$CA_CERT" ] ; then
echo "CA_CERT not defined in 't_client.rc'. SKIP test." >&2
- exit 0
+ exit 77
fi
if [ -z "$TEST_RUN_LIST" ] ; then
echo "TEST_RUN_LIST empty, no tests defined. SKIP test." >&2
- exit 0
+ exit 77
fi
# make sure we have permissions to run ifconfig/route from OpenVPN
@@ -51,7 +51,7 @@ if expr "$ID" : "uid=0" >/dev/null
then :
else
echo "$0: this test must run be as root. SKIP." >&2
- exit 0
+ exit 77
fi
LOGDIR=t_client-`hostname`-`date +%Y%m%d-%H%M%S`