From: Dan Fandrich Date: Wed, 7 Jun 2023 22:06:11 +0000 (-0700) Subject: runtests: make test file directories in log/N X-Git-Tag: curl-8_2_0~135 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F11267%2Fhead;p=thirdparty%2Fcurl.git runtests: make test file directories in log/N Test files in subdirectories were not created after parallel test log directories were moved down a level due to a now-bad comparison. Follow-up to 92d7dd39 Ref #11264 Closes #11267 --- diff --git a/tests/runner.pm b/tests/runner.pm index d14e158066..e4cf75ff3a 100644 --- a/tests/runner.pm +++ b/tests/runner.pm @@ -701,8 +701,9 @@ sub singletest_prepare { my $path = $filename; # cut off the file name part $path =~ s/^(.*)\/[^\/]*/$1/; + my $nparts = scalar(split(/\//, $LOGDIR)); my @parts = split(/\//, $path); - if($parts[0] eq $LOGDIR) { + if(join("/", @parts[0..$nparts-1]) eq $LOGDIR) { # the file is in $LOGDIR/ my $d = shift @parts; for(@parts) {