summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Lane2021-03-19 02:43:03 +0000
committerTom Lane2021-03-19 02:43:11 +0000
commit27ab1981e7c9b8fcbcb143c5f6f706441a52bbc8 (patch)
treea77c1687e6d0d66d7ab32b7d1cea628fd185dcf2
parentfd31214075cc740e43edc71ca1c385c8c53047b7 (diff)
Blindly try to fix test script's tar invocation for MSYS.
Buildfarm member fairywren doesn't like the test case I added in commit 081876d75. I'm guessing the reason is that I shouldn't be using a perl2host-ified path in the tar command line.
-rw-r--r--src/bin/pg_basebackup/t/010_pg_basebackup.pl5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/bin/pg_basebackup/t/010_pg_basebackup.pl b/src/bin/pg_basebackup/t/010_pg_basebackup.pl
index 019c15c62fa..089c9cb851a 100644
--- a/src/bin/pg_basebackup/t/010_pg_basebackup.pl
+++ b/src/bin/pg_basebackup/t/010_pg_basebackup.pl
@@ -270,9 +270,10 @@ SKIP:
$node2->init_from_backup($node, 'tarbackup2', tar_program => $tar);
# Recover tablespace into a new directory (not where it was!)
- mkdir "$tempdir/tblspc1replica";
+ my $repTsDir = "$tempdir/tblspc1replica";
my $realRepTsDir = TestLib::perl2host("$shorter_tempdir/tblspc1replica");
- TestLib::system_or_bail($tar, 'xf', $tblspc_tars[0], '-C', $realRepTsDir);
+ mkdir $repTsDir;
+ TestLib::system_or_bail($tar, 'xf', $tblspc_tars[0], '-C', $repTsDir);
# Update tablespace map to point to new directory.
# XXX Ideally pg_basebackup would handle this.