diff options
author | Karl Williamson <khw@cpan.org> | 2022-12-12 21:52:57 -0700 |
---|---|---|
committer | Yves Orton <demerphq@gmail.com> | 2022-12-18 18:56:09 +0100 |
commit | b76e72c716292b56beb2ee67e114f77c08028c0c (patch) | |
tree | df0b21c7b5eda5dcbc8b2481419addadd6280729 /t | |
parent | c7f8bf87c7839fa664afa2b32be8f44b499b0763 (diff) | |
download | perl-b76e72c716292b56beb2ee67e114f77c08028c0c.tar.gz |
harness: Don't strip off '../' in path
This will be useful in future commits
Diffstat (limited to 't')
-rw-r--r-- | t/harness | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -187,8 +187,9 @@ if (@ARGV) { # Keep a list of the distinct directory names, and another list of # those which contain a file whose name begins with a 0 - if ($file =~ m! \A (?: \.\. / )? - ( .*? ) # $1 is the directory path name + if ($file =~ m! \A ( (?: \.\. / )? + .*? + ) # $1 is the directory path name / ( [^/]* \. (?: t | pl ) ) # $2 is the test name \z !x) @@ -206,7 +207,7 @@ if (@ARGV) { # directory containing such files should be tested in serial order. # # Add exceptions to the above rule - for (qw(cpan/IO-Zlib/t ext/File-Find/t)) { + for (qw(../cpan/IO-Zlib/t ../ext/File-Find/t)) { $serials{$_} = 1; } |