Unbreak pg_basebackup/t/010_pg_basebackup.pl on msys
authorAndrew Dunstan <andrew@dunslane.net>
Mon, 24 Jan 2022 19:03:46 +0000 (14:03 -0500)
committerAndrew Dunstan <andrew@dunslane.net>
Mon, 24 Jan 2022 19:11:25 +0000 (14:11 -0500)
Once again we ran foul of the rather baroque msys2 path translation
rules. The cure as in many cases is to do the translation ourselves.

Discussion: https://postgr.es/m/CA+TgmoZU+1yj8TZ8PZrPHxPmr6Wz84V2RfZnsd5HnZugYtqZng@mail.gmail.com

src/bin/pg_basebackup/t/010_pg_basebackup.pl

index 95a6bd6778f0ccec64672360b9c4a2f0eb5b2dd8..a827be5e592d9e8bb3c84213f94b0a0665686145 100644 (file)
@@ -516,7 +516,7 @@ $node->command_ok(
    [ @pg_basebackup_defs, '--target', 'blackhole', '-X', 'none' ],
    'backup target blackhole');
 $node->command_ok(
-   [ @pg_basebackup_defs, '--target', "server:$tempdir/backuponserver", '-X', 'none' ],
+   [ @pg_basebackup_defs, '--target', "server:$real_tempdir/backuponserver", '-X', 'none' ],
    'backup target server');
 ok(-f "$tempdir/backuponserver/base.tar", 'backup tar was created');
 rmtree("$tempdir/backuponserver");