]> granicus.if.org Git - postgresql/commitdiff
Don't leave 'tmp_check' directory behind in pg_rewind regression tests.
authorHeikki Linnakangas <heikki.linnakangas@iki.fi>
Wed, 22 Apr 2015 07:14:44 +0000 (10:14 +0300)
committerHeikki Linnakangas <heikki.linnakangas@iki.fi>
Wed, 22 Apr 2015 07:14:44 +0000 (10:14 +0300)
src/bin/pg_rewind/RewindTest.pm

index e6a5b9b3d955321588e306e7771f7a18a12bf9ee..84e0512143a34a007f84ea72074663e888baa3be 100644 (file)
@@ -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";