mirror of
https://github.com/postgres/postgres.git
synced 2025-04-24 10:47:04 +03:00
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
This commit is contained in:
parent
53ba10770a
commit
b22a36a62c
@ -224,7 +224,7 @@ sub run_pg_rewind
|
|||||||
# Stop the master and be ready to perform the 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");
|
system_or_bail("pg_ctl -w -D $test_standby_datadir stop -m fast >>$log_path 2>&1");
|
||||||
my $result =
|
my $result =
|
||||||
run(['./pg_rewind',
|
run(['pg_rewind',
|
||||||
"--debug",
|
"--debug",
|
||||||
"--source-pgdata=$test_standby_datadir",
|
"--source-pgdata=$test_standby_datadir",
|
||||||
"--target-pgdata=$test_master_datadir"],
|
"--target-pgdata=$test_master_datadir"],
|
||||||
@ -235,7 +235,7 @@ sub run_pg_rewind
|
|||||||
{
|
{
|
||||||
# Do rewind using a remote connection as source
|
# Do rewind using a remote connection as source
|
||||||
my $result =
|
my $result =
|
||||||
run(['./pg_rewind',
|
run(['pg_rewind',
|
||||||
"--source-server", "port=$port_standby dbname=postgres",
|
"--source-server", "port=$port_standby dbname=postgres",
|
||||||
"--target-pgdata=$test_master_datadir"],
|
"--target-pgdata=$test_master_datadir"],
|
||||||
'>>', $log_path, '2>&1');
|
'>>', $log_path, '2>&1');
|
||||||
|
Loading…
x
Reference in New Issue
Block a user