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
This commit is contained in:
Родитель
78886afb50
Коммит
7af151ded0
|
@ -701,8 +701,9 @@ sub singletest_prepare {
|
||||||
my $path = $filename;
|
my $path = $filename;
|
||||||
# cut off the file name part
|
# cut off the file name part
|
||||||
$path =~ s/^(.*)\/[^\/]*/$1/;
|
$path =~ s/^(.*)\/[^\/]*/$1/;
|
||||||
|
my $nparts = scalar(split(/\//, $LOGDIR));
|
||||||
my @parts = split(/\//, $path);
|
my @parts = split(/\//, $path);
|
||||||
if($parts[0] eq $LOGDIR) {
|
if(join("/", @parts[0..$nparts-1]) eq $LOGDIR) {
|
||||||
# the file is in $LOGDIR/
|
# the file is in $LOGDIR/
|
||||||
my $d = shift @parts;
|
my $d = shift @parts;
|
||||||
for(@parts) {
|
for(@parts) {
|
||||||
|
|
Загрузка…
Ссылка в новой задаче