aboutsummaryrefslogtreecommitdiff
path: root/src/bin/pg_rewind/RewindTest.pm
diff options
context:
space:
mode:
authorHeikki Linnakangas <heikki.linnakangas@iki.fi>2015-04-13 18:28:42 +0300
committerHeikki Linnakangas <heikki.linnakangas@iki.fi>2015-04-13 18:30:38 +0300
commitb22a36a62ce312c1df9477382d1da602b0c24f6f (patch)
treedc82b0ec5c5bca9abf9bf9ea1e811e0057676a0b /src/bin/pg_rewind/RewindTest.pm
parent53ba10770a315361770efdc17d2c01f6a30e3e3d (diff)
downloadpostgresql-b22a36a62ce312c1df9477382d1da602b0c24f6f.tar.gz
postgresql-b22a36a62ce312c1df9477382d1da602b0c24f6f.zip
Fix pg_rewind regression tests in VPATH builds
Should call just "pg_rewind", instead of "./pg_rewind". The tests are called so that PATH contains the temporariy installation bin dir. Per report from Alvaro Herrera
Diffstat (limited to 'src/bin/pg_rewind/RewindTest.pm')
-rw-r--r--src/bin/pg_rewind/RewindTest.pm4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/bin/pg_rewind/RewindTest.pm b/src/bin/pg_rewind/RewindTest.pm
index 7a20e79be8b..50cae2c2632 100644
--- a/src/bin/pg_rewind/RewindTest.pm
+++ b/src/bin/pg_rewind/RewindTest.pm
@@ -224,7 +224,7 @@ sub run_pg_rewind
# Stop the master and be ready to perform the rewind
system_or_bail("pg_ctl -w -D $test_standby_datadir stop -m fast >>$log_path 2>&1");
my $result =
- run(['./pg_rewind',
+ run(['pg_rewind',
"--debug",
"--source-pgdata=$test_standby_datadir",
"--target-pgdata=$test_master_datadir"],
@@ -235,7 +235,7 @@ sub run_pg_rewind
{
# Do rewind using a remote connection as source
my $result =
- run(['./pg_rewind',
+ run(['pg_rewind',
"--source-server", "port=$port_standby dbname=postgres",
"--target-pgdata=$test_master_datadir"],
'>>', $log_path, '2>&1');