tests: Fix bootstrap wouldn't cd for test_regress/t/t_dist_portability.pl.

This commit is contained in:
Wilson Snyder 2013-02-10 09:29:35 -05:00
parent 6cfcd50f12
commit e1f6802f5f

View File

@ -14,9 +14,9 @@ use Cwd qw(chdir);
my @args = @ARGV;
chdir("$FindBin::Bin/..");
$ENV{PWD} = Cwd::getcwd(); # Else chdir leaves the .. which confuses later commands
@args = map { s!.*test_regress/!!; $_; } @args;
print "cd $ENV{PWD} && $FindBin::Bin/bootstrap.pl ",join(' ',@args),"\n";
exec("./driver.pl", @args);
die;