Blindly try to fix test script's tar invocation for MSYS.
authorTom Lane <tgl@sss.pgh.pa.us>
Fri, 19 Mar 2021 02:43:03 +0000 (22:43 -0400)
committerTom Lane <tgl@sss.pgh.pa.us>
Fri, 19 Mar 2021 02:43:11 +0000 (22:43 -0400)
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.

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

index 019c15c62fa47b11da4a4355b3e3f3f3176f72fc..089c9cb851aa85187914253e22593910f66b6282 100644 (file)
@@ -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.