>From 28cdfae75121cc51092a68642b03cd394cc32f01 Mon Sep 17 00:00:00 2001 From: Mike Miller Date: Thu, 22 Dec 2016 14:30:51 -0800 Subject: [PATCH] tests: allow running tests with alternate ocserv Allow $OCSERV in the caller's environment to override the default ocserv system installation. Signed-off-by: Mike Miller --- tests/common.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/common.sh b/tests/common.sh index 6d5736a88b76..fbfde7aea739 100644 --- a/tests/common.sh +++ b/tests/common.sh @@ -19,13 +19,13 @@ #this test can only be run as root -if ! test -x /usr/sbin/ocserv;then +OCSERV=${OCSERV:-/usr/sbin/ocserv} + +if ! test -x ${OCSERV};then echo "You need ocserv to run this test" exit 77 fi -OCSERV=/usr/sbin/ocserv - SOCKDIR="./sockwrap.$$.tmp" mkdir -p $SOCKDIR export SOCKET_WRAPPER_DIR=$SOCKDIR -- 2.11.0