diff options
author | Peter Eisentraut <peter_e@gmx.net> | 2017-09-05 12:22:33 -0400 |
---|---|---|
committer | Peter Eisentraut <peter_e@gmx.net> | 2017-09-05 12:24:06 -0400 |
commit | 90627cf98a8e7d0531789391fd798c9bfcc3bc1a (patch) | |
tree | 4f5b13996075625850cca581d278e8f2e174751d /src/bin/pg_rewind/t/002_databases.pl | |
parent | 5e8304fdce2d5c41ef7a648ed0a622480f8f0a07 (diff) | |
download | postgresql-90627cf98a8e7d0531789391fd798c9bfcc3bc1a.tar.gz |
Support retaining data dirs on successful TAP tests
This moves the data directories from using temporary directories with
randomness in the directory name to a static name, to make it easier to
debug. The data directory will be retained if tests fail or the test
code dies/exits with failure, and is automatically removed on the next
make check.
If the environment variable PG_TEST_NOCLEAN is defined, the data
directories will be retained regardless of test or exit status.
Author: Daniel Gustafsson <daniel@yesql.se>
Diffstat (limited to 'src/bin/pg_rewind/t/002_databases.pl')
-rw-r--r-- | src/bin/pg_rewind/t/002_databases.pl | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/bin/pg_rewind/t/002_databases.pl b/src/bin/pg_rewind/t/002_databases.pl index 20bdb4ab59..37cdd712f3 100644 --- a/src/bin/pg_rewind/t/002_databases.pl +++ b/src/bin/pg_rewind/t/002_databases.pl @@ -9,13 +9,13 @@ sub run_test { my $test_mode = shift; - RewindTest::setup_cluster(); + RewindTest::setup_cluster($test_mode); RewindTest::start_master(); # Create a database in master. master_psql('CREATE DATABASE inmaster'); - RewindTest::create_standby(); + RewindTest::create_standby($test_mode); # Create another database, the creation is replicated to the standby master_psql('CREATE DATABASE beforepromotion'); |