mirror of
https://github.com/postgres/postgres.git
synced 2025-06-16 06:01:02 +03:00
Prefix temp data dirs with the node name
This makes it easier to relate the temporary data dirs to each node in a test script. Author: Kyotaro Horiguchi Reviewed-By: Craig Ringer, Alvaro Herrera
This commit is contained in:
@ -128,9 +128,11 @@ sub all_tests_passing
|
||||
#
|
||||
sub tempdir
|
||||
{
|
||||
my ($prefix) = @_;
|
||||
$prefix = "tmp_test" unless defined $prefix;
|
||||
return File::Temp::tempdir(
|
||||
'tmp_testXXXX',
|
||||
DIR => $tmp_check,
|
||||
$prefix . '_XXXX',
|
||||
DIR => $tmp_check,
|
||||
CLEANUP => 1);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user