Re: pg_upgrade test writes to source directory

Поиск
Список
Период
Сортировка
От Michael Paquier
Тема Re: pg_upgrade test writes to source directory
Дата
Msg-id Yo3Z5JzHXn7sIe9N@paquier.xyz
обсуждение исходный текст
Ответ на pg_upgrade test writes to source directory  (Peter Eisentraut <peter.eisentraut@enterprisedb.com>)
Ответы Re: pg_upgrade test writes to source directory  (Peter Eisentraut <peter.eisentraut@enterprisedb.com>)
Список pgsql-hackers
On Wed, May 25, 2022 at 08:21:26AM +0200, Peter Eisentraut wrote:
> The 002_pg_upgrade.pl test leaves a file delete_old_cluster.sh in the source
> directory.  In vpath builds, there shouldn't be any files written to the
> source directory.
>
> Note that the TAP tests run with the source directory as the current
> directory, so this is the result of pg_upgrade leaving its output files in
> the current directory.

Good catch, thanks.

> It looks like an addition of
>
>     chdir $ENV{TESTOUTDIR};
>
> could fix it.  Please check the patch.

I think that you mean TESTDIR, and not TESTOUTDIR?  Doing a chdir at
the beginning of the tests would cause pg_regress to fail as we would
not find anymore the regression schedule in a VPATH build, but it is
possible to chdir before the execution of pg_upgrade, like the
attached.
--
Michael

Вложения

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

Предыдущее
От: Kyotaro Horiguchi
Дата:
Сообщение: Re: fix stats_fetch_consistency value in postgresql.conf.sample
Следующее
От: Peter Smith
Дата:
Сообщение: Re: Multi-Master Logical Replication