From 4d930eee89954ef8ac5402f3d568c11ff6256035 Mon Sep 17 00:00:00 2001 From: Heikki Linnakangas Date: Wed, 22 Apr 2015 10:14:44 +0300 Subject: [PATCH] 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 e6a5b9b3d9..84e0512143 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"; -- 2.40.0