This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Porting/sync-with-cpan: do in fact run the new dist's tests
authorAaron Crane <arc@cpan.org>
Thu, 29 Dec 2016 13:07:35 +0000 (13:07 +0000)
committerAaron Crane <arc@cpan.org>
Fri, 30 Dec 2016 14:00:01 +0000 (14:00 +0000)
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.

Porting/sync-with-cpan

index 30935d3..9cf7389 100755 (executable)
@@ -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/) {