diff --git a/Porting/test-dist-modules.pl b/Porting/test-dist-modules.pl index 7a4583240ccd..9d0376e6f045 100644 --- a/Porting/test-dist-modules.pl +++ b/Porting/test-dist-modules.pl @@ -209,12 +209,12 @@ sub test_dist { if (my $cfg = $dist_config{$name}) { push @my_config, @$cfg; } + my @verbose; + push @verbose, "-v" if $verbose; if (!run($^X, "Makefile.PL", @my_config)) { $failed = "Makefile.PL"; die "$name: Makefile.PL failed\n" unless $continue; } - my @verbose; - push @verbose, "-v" if $verbose; elsif (!run("probe", "-b", @verbose, '-e', 'gdb -q -ex r -ex bt -ex q --args')) { $failed = "make test"; die "$name: make test failed\n" unless $continue;