1
0
mirror of https://github.com/postgres/postgres.git synced 2025-06-16 06:01:02 +03:00

Support vpath builds in TAP tests

This commit is contained in:
Peter Eisentraut
2014-07-02 21:47:07 -04:00
parent 93787ce747
commit 04163ff1b9
2 changed files with 3 additions and 3 deletions

View File

@ -62,7 +62,7 @@ $ENV{PGPORT} = int($ENV{PGPORT}) % 65536;
sub tempdir
{
return File::Temp::tempdir('testXXXX', DIR => cwd(), CLEANUP => 1);
return File::Temp::tempdir('tmp_testXXXX', DIR => $ENV{TESTDIR} || cwd(), CLEANUP => 1);
}
my ($test_server_datadir, $test_server_logfile);