diff options
author | Andrew Dunstan <andrew@dunslane.net> | 2015-07-28 15:34:35 -0400 |
---|---|---|
committer | Andrew Dunstan <andrew@dunslane.net> | 2015-07-28 15:34:35 -0400 |
commit | 01f6bb4b2dcc571ad0cc6a404595de4b03157534 (patch) | |
tree | f2b3c9c69a7f2cd6ea1be629ead11654ae10bd3a /src/bin/pg_rewind/RewindTest.pm | |
parent | 6f2871f12e9fba5deec4296cfe12e85c140261c4 (diff) | |
download | postgresql-01f6bb4b2dcc571ad0cc6a404595de4b03157534.tar.gz postgresql-01f6bb4b2dcc571ad0cc6a404595de4b03157534.zip |
Make tap tests store postmaster logs and handle vpaths correctly
Given this it is possible that the buildfarm animals running these tests
will be able to capture adequate logging to allow diagnosis of failures.
Diffstat (limited to 'src/bin/pg_rewind/RewindTest.pm')
-rw-r--r-- | src/bin/pg_rewind/RewindTest.pm | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/bin/pg_rewind/RewindTest.pm b/src/bin/pg_rewind/RewindTest.pm index db5e90b3c0f..755ecb74383 100644 --- a/src/bin/pg_rewind/RewindTest.pm +++ b/src/bin/pg_rewind/RewindTest.pm @@ -72,9 +72,6 @@ our $test_standby_datadir = "$testroot/data_standby"; mkdir $testroot; -# Log files are created here -mkdir "regress_log"; - # Define non-conflicting ports for both nodes. my $port_master = $ENV{PGPORT}; my $port_standby = $port_master + 1; @@ -202,6 +199,7 @@ local replication all trust system_or_bail('pg_ctl' , '-w', '-D' , $test_master_datadir, + '-l', "$log_path/master.log", "-o", "-k $tempdir_short --listen-addresses='' -p $port_master", 'start'); @@ -228,6 +226,7 @@ recovery_target_timeline='latest' # Start standby system_or_bail('pg_ctl', '-w', '-D', $test_standby_datadir, + '-l', "$log_path/standby.log", '-o', "-k $tempdir_short --listen-addresses='' -p $port_standby", 'start'); @@ -323,6 +322,7 @@ recovery_target_timeline='latest' # Restart the master to check that rewind went correctly system_or_bail('pg_ctl', '-w', '-D', $test_master_datadir, + '-l', "$log_path/master.log", '-o', "-k $tempdir_short --listen-addresses='' -p $port_master", 'start'); |