Changes in test/proxy_backend.bash [50eab8e:f87c1b5] in mod_gnutls
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
test/proxy_backend.bash
r50eab8e rf87c1b5 2 2 3 3 set -e 4 . ${srcdir}/common.bash 4 5 5 6 if [ -z "${BACKEND_HOST}" ]; then … … 12 13 export BACKEND_PORT="9934" 13 14 fi 14 : ${BACKEND_ LOCK:="backend.lock"}15 : ${BACKEND_PID:="backend.pid"} 15 16 : ${srcdir:="."} 16 17 : ${APACHE2:="apache2"} … … 24 25 lockfile="${4}" 25 26 26 if [ -n "${lockfile}" ]; then27 flock_cmd="flock -w ${TEST_LOCK_WAIT} ${lockfile}"28 fi29 30 27 TEST_NAME="$(basename "${dir}")" 31 28 ( … … 36 33 case $action in 37 34 start) 35 if [ -n "${USE_TEST_NAMESPACE}" ]; then 36 echo "Using namespaces to isolate tests, no need for" \ 37 "locking." 38 flock_cmd="" 39 elif [ -n "${lockfile}" ]; then 40 flock_cmd="${FLOCK} -w ${TEST_LOCK_WAIT} ${lockfile}" 41 else 42 echo "Locking disabled, using wait based on proxy PID file." 43 wait_pid_gone "${BACKEND_PID}" 44 flock_cmd="" 45 fi 38 46 ${flock_cmd} \ 39 47 ${APACHE2} -f "$(realpath ${testdir}/${conf})" -k start || return 1
Note: See TracChangeset
for help on using the changeset viewer.