Skip to content

Commit 5352940

Browse files
committed
test-dist-modules.pl: allow the invoker to keep the build around
This is especially handy when tracking down problems with Devel::PPPort, since so much is generated.
1 parent 33df2fe commit 5352940

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

Porting/test-dist-modules.pl

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,11 @@
1515
my $continue;
1616
my $separate;
1717
my $install;
18+
my $keep;
1819
GetOptions("c|continue" => \$continue,
1920
"s|separate" => \$separate,
2021
"i|install" => \$install,
22+
"k|keep" => \$keep,
2123
"h|help" => \&usage)
2224
or usage("Unknown options");
2325

@@ -119,7 +121,9 @@ sub test_dist {
119121

120122
print "::group::Testing $name\n" if $github_ci;
121123
print "*** Testing $name ***\n";
122-
my $dir = tempdir( CLEANUP => 1);
124+
my $dir = tempdir( CLEANUP => !$keep);
125+
print "$name testing in $dir\n" if $keep;
126+
123127
run("cp", "-a", "dist/$name/.", "$dir/.")
124128
or die "Cannot copy dist files to working directory\n";
125129
chdir $dir

0 commit comments

Comments
 (0)