Re: TAP tests and symlinks on Windows

Поиск
Список
Период
Сортировка
От Andrew Dunstan
Тема Re: TAP tests and symlinks on Windows
Дата
Msg-id 90193559-efe2-cb43-888a-52f964b931fc@2ndQuadrant.com
обсуждение исходный текст
Ответ на Re: TAP tests and symlinks on Windows  (Peter Eisentraut <peter.eisentraut@2ndquadrant.com>)
Ответы Re: TAP tests and symlinks on Windows  (Michael Paquier <michael@paquier.xyz>)
Список pgsql-hackers
On 7/3/20 10:11 AM, Peter Eisentraut wrote:
> 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.



I'll see what I can come up with.


cheers


andrew


-- 
Andrew Dunstan                https://www.2ndQuadrant.com
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services




В списке pgsql-hackers по дате отправления:

Предыдущее
От: Daniel Gustafsson
Дата:
Сообщение: Re: Online verification of checksums
Следующее
От: Pavel Stehule
Дата:
Сообщение: Re: proposal: schema variables