Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitcc6077d

Browse files
committed
Prefix temp data dirs with the node name
This makes it easier to relate the temporary data dirs to each node ina test script.Author: Kyotaro HoriguchiReviewed-By: Craig Ringer, Alvaro Herrera
1 parentc8c7c93 commitcc6077d

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

‎src/test/perl/PostgresNode.pm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ sub new
115115
my$self = {
116116
_port=>$pgport,
117117
_host=>$pghost,
118-
_basedir=> TestLib::tempdir,
118+
_basedir=> TestLib::tempdir("data_" .$name),
119119
_name=>$name,
120120
_logfile=>"$TestLib::log_path/${testname}_${name}.log" };
121121

‎src/test/perl/TestLib.pm

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -128,9 +128,11 @@ sub all_tests_passing
128128
#
129129
subtempdir
130130
{
131+
my ($prefix) =@_;
132+
$prefix ="tmp_test"unlessdefined$prefix;
131133
return File::Temp::tempdir(
132-
'tmp_testXXXX',
133-
DIR=>$tmp_check,
134+
$prefix .'_XXXX',
135+
DIR=>$tmp_check,
134136
CLEANUP=> 1);
135137
}
136138

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp