Merge branch 'tmp-311' into 'master'

tests: detect openconnect's path and fail if not found

Closes #311

See merge request openconnect/ocserv!182
This commit is contained in:
Nikos Mavrogiannopoulos
2020-06-11 21:08:34 +00:00

View File

@@ -23,11 +23,11 @@
builddir=${builddir:-.}
OPENCONNECT=${OPENCONNECT:-/usr/sbin/openconnect}
OPENCONNECT=${OPENCONNECT:-$(which openconnect)}
if ! test -x ${OPENCONNECT};then
if test -z "${OPENCONNECT}" || ! test -x ${OPENCONNECT};then
echo "You need openconnect to run this test"
exit 77
exit 1
fi
if test -z "$NO_NEED_ROOT";then