pg.ddx.io pgsql-hackers@postgresql.org mailing list archive
help / color / mirror / Atom feed From: Peter Eisentraut <peter.eisentraut@2ndquadrant.com>
To: Michael Paquier <michael@paquier.xyz>
Cc: Andrew Dunstan <andrew.dunstan@2ndquadrant.com>
Cc: Juan José Santamaría Flecha <juanjo.santamaria@gmail.com>
Cc: Dagfinn Ilmari Mannsåker <ilmari@ilmari.org>
Cc: pgsql-hackers <pgsql-hackers@postgresql.org>
Subject: Re: TAP tests and symlinks on Windows
Date: Fri, 3 Jul 2020 16:11:27 +0200
Message-ID: <504f09d7-d600-44ca-a32b-0ed209cc2273@2ndquadrant.com> (raw )
In-Reply-To: <20200630121328.GB67289@paquier.xyz >
References: <87sgf4pmb8.fsf@wibble.ilmari.org >
<20200612065957.GA3362@paquier.xyz >
<CAC+AXB0VJ9A4f6Ob9b3wV8V_VGND5X3MBLKQRd0+8L6t-gMiCQ@mail.gmail.com >
<20200613060054.GM3362@paquier.xyz >
<20200615062319.GF52676@paquier.xyz >
<11c4ee09-3706-5912-ffd7-dc3657de7a5e@2ndQuadrant.com >
<20200617074434.GB118592@paquier.xyz >
<20200623105527.GA1974@paquier.xyz >
<3ebcde2b-3b78-2e5f-9249-03c709dc23dd@2ndquadrant.com >
<20200629075616.GC330401@paquier.xyz >
<20200630121328.GB67289@paquier.xyz >
On 2020-06-30 14:13, Michael Paquier wrote:
> Attached is an updated patch, where I have tried to use a better
> wording in all the code paths involved.
This new patch doesn't work for me on MSYS2 yet.
It fails right now in 010_pg_basebackup.pl at
my $realTsDir = TestLib::perl2host("$shorter_tempdir/tblspc1");
with chdir: No such file or directory. Because perl2host requires the
parent directory of the argument to exist, but here it doesn't.
If I add
mkdir $shorter_tempdir;
above it, then it proceeds past that point, but then the CREATE
TABLESPACE command fails with No such file or directory. I think the call
symlink "$tempdir", $shorter_tempdir;
creates a directory inside $shorter_tempdir, since it now exists, per my
above change, rather than in place of $shorter_tempdir.
I think all of this is still a bit too fragile it needs further
consideration.
--
Peter Eisentraut http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services
view thread (34+ messages) latest in thread
Message-ID: <504f09d7-d600-44ca-a32b-0ed209cc2273@2ndquadrant.com>
Permalink: ../504f09d7-d600-44ca-a32b-0ed209cc2273@2ndquadrant.com/
Also on: postgresql.org/message-id/504f09d7-d600-44ca-a32b-0ed209cc2273@2ndquadrant.com
copy link · copy postgr.es
reply Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-hackers@postgresql.org
Cc: peter.eisentraut@2ndquadrant.com, michael@paquier.xyz, andrew.dunstan@2ndquadrant.com, juanjo.santamaria@gmail.com, ilmari@ilmari.org
Subject: Re: TAP tests and symlinks on Windows
In-Reply-To: <504f09d7-d600-44ca-a32b-0ed209cc2273@2ndquadrant.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox