From 7af151ded0c157dd0b375326ee2fcc15b74b6030 Mon Sep 17 00:00:00 2001 From: Dan Fandrich Date: Wed, 7 Jun 2023 15:06:11 -0700 Subject: [PATCH] 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 --- tests/runner.pm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/runner.pm b/tests/runner.pm index d14e15806..e4cf75ff3 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) {