runtests: call initserverconfig() in the runner

This must be done so variables pick up the runner's unique $LOGDIR.

Ref: #10818
This commit is contained in:
Dan Fandrich 2023-05-18 21:45:59 -07:00
parent 78d8bc4c63
commit 296baf45a0
2 changed files with 6 additions and 1 deletions

View File

@ -89,6 +89,7 @@ use processhelp qw(
use servers qw(
checkcmd
clearlocks
initserverconfig
serverfortest
stopserver
stopservers
@ -159,7 +160,7 @@ sub runner_init {
$multiprocess = !!$jobs;
# enable memory debugging if curl is compiled with it
$ENV{'CURL_MEMDEBUG'} = "$LOGDIR/$MEMDUMP";
$ENV{'CURL_MEMDEBUG'} = "$logdir/$MEMDUMP";
$ENV{'CURL_ENTROPY'}="12345678";
$ENV{'CURL_FORCETIME'}=1; # for debug NTLM magic
$ENV{'CURL_GLOBAL_INIT'}=1; # debug curl_global_init/cleanup use
@ -202,6 +203,9 @@ sub runner_init {
$LOGDIR = $logdir;
mkdir("$LOGDIR/$PIDDIR", 0777);
# Initialize various server variables
initserverconfig();
# handle IPC calls
event_loop();

View File

@ -2371,6 +2371,7 @@ if(!$listonly) {
#######################################################################
# initialize configuration needed to set up servers
# TODO: rearrange things so this can be called only in runner_init()
#
initserverconfig();