Skip to content

Commit 27ab198

Browse files
committed
Blindly try to fix test script's tar invocation for MSYS.
Buildfarm member fairywren doesn't like the test case I added in commit 081876d. I'm guessing the reason is that I shouldn't be using a perl2host-ified path in the tar command line.
1 parent fd31214 commit 27ab198

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

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

+3-2
Original file line numberDiff line numberDiff line change
@@ -270,9 +270,10 @@
270270
$node2->init_from_backup($node, 'tarbackup2', tar_program => $tar);
271271

272272
# Recover tablespace into a new directory (not where it was!)
273-
mkdir "$tempdir/tblspc1replica";
273+
my $repTsDir = "$tempdir/tblspc1replica";
274274
my $realRepTsDir = TestLib::perl2host("$shorter_tempdir/tblspc1replica");
275-
TestLib::system_or_bail($tar, 'xf', $tblspc_tars[0], '-C', $realRepTsDir);
275+
mkdir $repTsDir;
276+
TestLib::system_or_bail($tar, 'xf', $tblspc_tars[0], '-C', $repTsDir);
276277

277278
# Update tablespace map to point to new directory.
278279
# XXX Ideally pg_basebackup would handle this.

0 commit comments

Comments
 (0)