]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
REGTESTS: scripts: allow to change the vtest timeout
authorWilliam Lallemand <wlallemand@haproxy.com>
Wed, 22 May 2024 13:41:06 +0000 (15:41 +0200)
committerWilliam Lallemand <wlallemand@haproxy.com>
Wed, 22 May 2024 13:43:53 +0000 (15:43 +0200)
$ make reg-tests VTEST_TIMEOUT=5

Allow to change the timeout of the regtests with the VTEST_TIMEOUT
variable. The default value is still 10.

scripts/run-regtests.sh

index 4a37248902fb0227ec25b41fc99fd606953e8652..79dd8e9d8bf4770688e018ea066791c6043b31c2 100755 (executable)
@@ -314,6 +314,7 @@ _version() {
 HAPROXY_PROGRAM="${HAPROXY_PROGRAM:-${PWD}/haproxy}"
 HAPROXY_ARGS="${HAPROXY_ARGS--dM -dI}"
 VTEST_PROGRAM="${VTEST_PROGRAM:-vtest}"
+VTEST_TIMEOUT="${VTEST_TIMEOUT:-10}"
 TESTDIR="${TMPDIR:-/tmp}"
 REGTESTS=""
 LINEFEED="
@@ -396,7 +397,7 @@ if [ -n "$testlist" ]; then
   if [ -n "$jobcount" ]; then
     jobcount="-j $jobcount"
   fi
-  cmd="$VTEST_PROGRAM -b $((2<<20)) -k -t 10 $keep_logs $verbose $debug $jobcount $vtestparams $testlist"
+  cmd="$VTEST_PROGRAM -b $((2<<20)) -k -t ${VTEST_TIMEOUT} $keep_logs $verbose $debug $jobcount $vtestparams $testlist"
   eval $cmd
   _vtresult=$?
 else