pg.ddx.io pgsql-committers@postgresql.org mailing list archive
help / color / mirror / Atom feedpgsql: Blindly try to fix test script's tar invocation for MSYS.
4+ messages / 2 participants
[nested] [flat]
* pgsql: Blindly try to fix test script's tar invocation for MSYS.
@ 2021-03-19 02:43 Tom Lane <tgl@sss.pgh.pa.us>
2021-03-20 12:20 ` Re: pgsql: Blindly try to fix test script's tar invocation for MSYS. Andrew Dunstan <andrew@dunslane.net>
0 siblings, 1 reply; 4+ messages in thread
From: Tom Lane @ 2021-03-19 02:43 UTC (permalink / raw)
To: pgsql-committers@lists.postgresql.org
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.
Branch
------
master
Details
-------
https://git.postgresql.org/pg/commitdiff/27ab1981e7c9b8fcbcb143c5f6f706441a52bbc8
Modified Files
--------------
src/bin/pg_basebackup/t/010_pg_basebackup.pl | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
^ permalink raw reply [nested|flat] 4+ messages in thread
* Re: pgsql: Blindly try to fix test script's tar invocation for MSYS.
2021-03-19 02:43 pgsql: Blindly try to fix test script's tar invocation for MSYS. Tom Lane <tgl@sss.pgh.pa.us>
@ 2021-03-20 12:20 ` Andrew Dunstan <andrew@dunslane.net>
2021-03-20 15:05 ` Re: pgsql: Blindly try to fix test script's tar invocation for MSYS. Tom Lane <tgl@sss.pgh.pa.us>
0 siblings, 1 reply; 4+ messages in thread
From: Andrew Dunstan @ 2021-03-20 12:20 UTC (permalink / raw)
To: Tom Lane <tgl@sss.pgh.pa.us>; pgsql-committers@lists.postgresql.org
On 3/18/21 10:43 PM, Tom Lane wrote:
> 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.
>
No, you shouldn't. The rule is that you need to use perl2host when
passing a path to a non-msys-aware program. This will typically be one
of our own artefacts, or the comand processor (via system(), qx() etc.).
But msys-aware programs such as utility programs like tar should get the
path just as the perl script sees it.
Maybe I need to add to the comments on it in TestLib.pm.
cheers
andrew
--
Andrew Dunstan
EDB: https://www.enterprisedb.com
^ permalink raw reply [nested|flat] 4+ messages in thread
* Re: pgsql: Blindly try to fix test script's tar invocation for MSYS.
2021-03-19 02:43 pgsql: Blindly try to fix test script's tar invocation for MSYS. Tom Lane <tgl@sss.pgh.pa.us>
2021-03-20 12:20 ` Re: pgsql: Blindly try to fix test script's tar invocation for MSYS. Andrew Dunstan <andrew@dunslane.net>
@ 2021-03-20 15:05 ` Tom Lane <tgl@sss.pgh.pa.us>
2021-03-20 16:07 ` Re: pgsql: Blindly try to fix test script's tar invocation for MSYS. Andrew Dunstan <andrew@dunslane.net>
0 siblings, 1 reply; 4+ messages in thread
From: Tom Lane @ 2021-03-20 15:05 UTC (permalink / raw)
To: Andrew Dunstan <andrew@dunslane.net>; +Cc: pgsql-committers@lists.postgresql.org
Andrew Dunstan <andrew@dunslane.net> writes:
> On 3/18/21 10:43 PM, Tom Lane wrote:
>> 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.
> No, you shouldn't. The rule is that you need to use perl2host when
> passing a path to a non-msys-aware program. This will typically be one
> of our own artefacts, or the comand processor (via system(), qx() etc.).
> But msys-aware programs such as utility programs like tar should get the
> path just as the perl script sees it.
Ah. So it seems like the $64 question is how to know that tar, or any
particular other program, is msys-aware.
regards, tom lane
^ permalink raw reply [nested|flat] 4+ messages in thread
* Re: pgsql: Blindly try to fix test script's tar invocation for MSYS.
2021-03-19 02:43 pgsql: Blindly try to fix test script's tar invocation for MSYS. Tom Lane <tgl@sss.pgh.pa.us>
2021-03-20 12:20 ` Re: pgsql: Blindly try to fix test script's tar invocation for MSYS. Andrew Dunstan <andrew@dunslane.net>
2021-03-20 15:05 ` Re: pgsql: Blindly try to fix test script's tar invocation for MSYS. Tom Lane <tgl@sss.pgh.pa.us>
@ 2021-03-20 16:07 ` Andrew Dunstan <andrew@dunslane.net>
0 siblings, 0 replies; 4+ messages in thread
From: Andrew Dunstan @ 2021-03-20 16:07 UTC (permalink / raw)
To: Tom Lane <tgl@sss.pgh.pa.us>; +Cc: pgsql-committers@lists.postgresql.org
On 3/20/21 11:05 AM, Tom Lane wrote:
> Andrew Dunstan <andrew@dunslane.net> writes:
>> On 3/18/21 10:43 PM, Tom Lane wrote:
>>> 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.
>> No, you shouldn't. The rule is that you need to use perl2host when
>> passing a path to a non-msys-aware program. This will typically be one
>> of our own artefacts, or the comand processor (via system(), qx() etc.).
>> But msys-aware programs such as utility programs like tar should get the
>> path just as the perl script sees it.
> Ah. So it seems like the $64 question is how to know that tar, or any
> particular other program, is msys-aware.
>
>
1. If it's one of our artefacts it won't be - we're building to run
native without any msys involvement. (That's not quite true. It's
possible to build with msys as the target environment. But we don't, or
at least I don't, and I don't think anything else in the buildfarm does.)
2. Anything else (like tar) is very likely to be msys-aware. If there's
ever a doubt it might be possible to construct a test to look for the
program in the msys paths, but up to now we haven't really needed to,
and it seems likely to be overkill.
cheers
andrew
--
Andrew Dunstan
EDB: https://www.enterprisedb.com
^ permalink raw reply [nested|flat] 4+ messages in thread
end of thread, other threads:[~2021-03-20 16:07 UTC | newest]
Thread overview: 4+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2021-03-19 02:43 pgsql: Blindly try to fix test script's tar invocation for MSYS. Tom Lane <tgl@sss.pgh.pa.us>
2021-03-20 12:20 ` Andrew Dunstan <andrew@dunslane.net>
2021-03-20 15:05 ` Tom Lane <tgl@sss.pgh.pa.us>
2021-03-20 16:07 ` Andrew Dunstan <andrew@dunslane.net>
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