]> granicus.if.org Git - postgresql/commitdiff
Fix pg_rewind regression tests in VPATH builds
authorHeikki Linnakangas <heikki.linnakangas@iki.fi>
Mon, 13 Apr 2015 15:28:42 +0000 (18:28 +0300)
committerHeikki Linnakangas <heikki.linnakangas@iki.fi>
Mon, 13 Apr 2015 15:30:38 +0000 (18:30 +0300)
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

src/bin/pg_rewind/RewindTest.pm

index 7a20e79be8b25f339cdb6d5da994a7a91ced7dc1..50cae2c2632b06d6493ba892d93884fe1bfa23b3 100644 (file)
@@ -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');