From: Daniel Stenberg Date: Wed, 5 Mar 2025 09:40:44 +0000 (+0100) Subject: tests: make sure 'commands.log' is generated in the correct logdir X-Git-Tag: curl-8_13_0~266 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=34cbf95267f7c3f7b95e4c6c011dac79d6925993;p=thirdparty%2Fcurl.git tests: make sure 'commands.log' is generated in the correct logdir Closes #16568 --- diff --git a/tests/runner.pm b/tests/runner.pm index 68f3969cd0..633a927bcf 100644 --- a/tests/runner.pm +++ b/tests/runner.pm @@ -126,7 +126,7 @@ our $tortalloc; # local variables my %oldenv; # environment variables before test is started -my $CURLLOG="$LOGDIR/commands.log"; # all command lines run +my $CURLLOG = "commands.log"; # all command lines run my $defserverlogslocktimeout = 5; # timeout to await server logs lock removal my $defpostcommanddelay = 0; # delay between command and postcheck sections my $multiprocess; # nonzero with a separate test runner process @@ -1001,7 +1001,8 @@ sub singletest_run { logmsg "$CMDLINE\n"; } - open(my $cmdlog, ">", $CURLLOG) || die "Failure writing log file"; + open(my $cmdlog, ">", "$LOGDIR/$CURLLOG") || + die "Failure writing log file"; print $cmdlog "$CMDLINE\n"; close($cmdlog) || die "Failure writing log file";