Changeset dbec528 in mod_gnutls for test


Ignore:
Timestamp:
Jul 23, 2015, 11:53:03 AM (8 years ago)
Author:
Thomas Klute <thomas2.klute@…>
Branches:
asyncio, debian/master, debian/stretch-backports, jessie-backports, main, master, proxy-ticket, upstream
Children:
99f8375
Parents:
5d85ad3
Message:

Test suite: Require TEST_LOCK in runtests

TEST_LOCK is always set when runtests is called from make.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • test/runtests

    r5d85ad3 rdbec528  
    1616fi
    1717
    18 if [ -n "${TEST_LOCK}" ]; then
    19     TEST_LOCK="$(realpath ${TEST_LOCK})"
    20     flock_cmd="flock -w ${TEST_LOCK_WAIT} ${TEST_LOCK}"
    21 fi
    22 
    2318BADVARS=0
    24 for v in APACHE2 TEST_HOST TEST_IP TEST_PORT TEST_QUERY_DELAY TEST_GAP MSVA_PORT; do
     19for v in APACHE2 TEST_HOST TEST_IP TEST_PORT TEST_QUERY_DELAY TEST_GAP \
     20                 MSVA_PORT TEST_LOCK; do
    2521    if [ ! -v "$v" ]; then
    2622        printf "You need to set the %s environment variable\n" "$v" >&2
     
    151147fi
    152148
    153 if [ -z "${flock_cmd}" ]; then
    154     echo "Warning: no lock file set"
    155     sleep "$TEST_GAP"
    156 fi
     149# configure locking for the Apache process
     150flock_cmd="flock -w ${TEST_LOCK_WAIT} $(realpath ${TEST_LOCK})"
     151
    157152t="$(realpath ${testid})"
    158153export srcdir="$(realpath ${srcdir})"
Note: See TracChangeset for help on using the changeset viewer.