summaryrefslogtreecommitdiff
path: root/Porting/sync-with-cpan
diff options
context:
space:
mode:
authorAaron Crane <arc@cpan.org>2016-12-29 13:07:35 +0000
committerAaron Crane <arc@cpan.org>2016-12-30 14:00:01 +0000
commit57b5d6e120f1ac6da4b0ec49224c35d18eb4330e (patch)
treeac26d2259e53860d45815d3823338ca369dd41df /Porting/sync-with-cpan
parent24c7e242df9ccb3c2da28b617dc6549607a90f82 (diff)
downloadperl-57b5d6e120f1ac6da4b0ec49224c35d18eb4330e.tar.gz
Porting/sync-with-cpan: do in fact run the new dist's tests
At the point we look for the dist's test files, we've just chdir-ed into Perl's t/ directory (since we need to be able to run the ./perl binary in that directory), so the tests are therefore under ../cpan/$dist.
Diffstat (limited to 'Porting/sync-with-cpan')
-rwxr-xr-xPorting/sync-with-cpan2
1 files changed, 1 insertions, 1 deletions
diff --git a/Porting/sync-with-cpan b/Porting/sync-with-cpan
index 30935d336e..9cf7389dc7 100755
--- a/Porting/sync-with-cpan
+++ b/Porting/sync-with-cpan
@@ -486,7 +486,7 @@ unlink "cpan/$new_file" unless $tarball;
#
chdir "t";
say "Running module tests";
-my @test_files = grep { /\.t$/ } find_type_f( $pkg_dir );
+my @test_files = grep { /\.t$/ } find_type_f( "../cpan/$pkg_dir" );
my $exe_dir= $^O =~ /MSWin/ ? "..\\" : './';
my $output = `${exe_dir}perl$Config{_exe} TEST @test_files`;
unless ($output =~ /All tests successful/) {