postgres.git / summary / log / commit / refs
commit 4d930eee89954ef8ac5402f3d568c11ff6256035
Author: Heikki Linnakangas <heikki.linnakangas@iki.fi>
Date: Wed Apr 22 07:14:44 2015 +0000
Don't leave 'tmp_check' directory behind in pg_rewind regression tests.
src/bin/pg_rewind/RewindTest.pm | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/src/bin/pg_rewind/RewindTest.pm b/src/bin/pg_rewind/RewindTest.pm
index e6a5b9b3d95..84e0512143a 100644
--- a/src/bin/pg_rewind/RewindTest.pm
+++ b/src/bin/pg_rewind/RewindTest.pm
@@ -62,9 +62,11 @@ our @EXPORT = qw(
clean_rewind_test
);
+# A temporary directory created with 'tempdir' is deleted automatically at
+# the end of the tests. You can change it to a constant if you need to keep it
+# for debugging purposes,
+my $testroot = tempdir;
-# Adjust these paths for your environment
-my $testroot = "./tmp_check";
our $test_master_datadir="$testroot/data_master";
our $test_standby_datadir="$testroot/data_standby";
[parent: b0a738f428ca]