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)
Список
Дерево обсуждения
pg_upgrade test writes to source directory Peter Eisentraut <peter.eisentraut@enterprisedb.com>
Re: pg_upgrade test writes to source directory Michael Paquier <michael@paquier.xyz>
Re: pg_upgrade test writes to source directory Peter Eisentraut <peter.eisentraut@enterprisedb.com>
Re: pg_upgrade test writes to source directory Michael Paquier <michael@paquier.xyz>
Re: pg_upgrade test writes to source directory Justin Pryzby <pryzby@telsasoft.com>
Re: pg_upgrade test writes to source directory Peter Eisentraut <peter.eisentraut@enterprisedb.com>
Re: pg_upgrade test writes to source directory Michael Paquier <michael@paquier.xyz>
Re: pg_upgrade test writes to source directory Peter Eisentraut <peter.eisentraut@enterprisedb.com>
Re: pg_upgrade test writes to source directory Michael Paquier <michael@paquier.xyz>
Re: pg_upgrade test writes to source directory Tom Lane <tgl@sss.pgh.pa.us>
Re: pg_upgrade test writes to source directory Michael Paquier <michael@paquier.xyz>
Re: pg_upgrade test writes to source directory Tom Lane <tgl@sss.pgh.pa.us>
Re: pg_upgrade test writes to source directory Michael Paquier <michael@paquier.xyz>
Re: pg_upgrade test writes to source directory Andres Freund <andres@anarazel.de>
Re: pg_upgrade test writes to source directory Tom Lane <tgl@sss.pgh.pa.us>
Re: pg_upgrade test writes to source directory Michael Paquier <michael@paquier.xyz>
Re: pg_upgrade test writes to source directory Peter Eisentraut <peter.eisentraut@enterprisedb.com>
Re: pg_upgrade test writes to source directory Andres Freund <andres@anarazel.de>
Re: pg_upgrade test writes to source directory Michael Paquier <michael@paquier.xyz>
Re: pg_upgrade test writes to source directory Andrew Dunstan <andrew@dunslane.net>
Re: pg_upgrade test writes to source directory Michael Paquier <michael@paquier.xyz>
Re: pg_upgrade test writes to source directory Andres Freund <andres@anarazel.de>
Re: pg_upgrade test writes to source directory Michael Paquier <michael@paquier.xyz>
Re: pg_upgrade test writes to source directory Tom Lane <tgl@sss.pgh.pa.us>
Re: pg_upgrade test writes to source directory Andres Freund <andres@anarazel.de>
Re: pg_upgrade test writes to source directory Tom Lane <tgl@sss.pgh.pa.us>
Re: pg_upgrade test writes to source directory Andres Freund <andres@anarazel.de>
Re: pg_upgrade test writes to source directory Tom Lane <tgl@sss.pgh.pa.us>
Re: pg_upgrade test writes to source directory Andres Freund <andres@anarazel.de>
Re: pg_upgrade test writes to source directory Andrew Dunstan <andrew@dunslane.net>
Re: pg_upgrade test writes to source directory Andres Freund <andres@anarazel.de>
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
Дата: