Skip to content

Commit 7af151d

Browse files
committed
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 92d7dd3 Ref curl#11264 Closes curl#11267
1 parent 78886af commit 7af151d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tests/runner.pm

+2-1
Original file line numberDiff line numberDiff line change
@@ -701,8 +701,9 @@ sub singletest_prepare {
701701
my $path = $filename;
702702
# cut off the file name part
703703
$path =~ s/^(.*)\/[^\/]*/$1/;
704+
my $nparts = scalar(split(/\//, $LOGDIR));
704705
my @parts = split(/\//, $path);
705-
if($parts[0] eq $LOGDIR) {
706+
if(join("/", @parts[0..$nparts-1]) eq $LOGDIR) {
706707
# the file is in $LOGDIR/
707708
my $d = shift @parts;
708709
for(@parts) {

0 commit comments

Comments
 (0)