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) {