pgsql: Fix several issues with the TAP tests of pg_upgrade

From: Michael Paquier <michael(at)paquier(dot)xyz>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Fix several issues with the TAP tests of pg_upgrade
Date: 2022-05-10 02:32:05
Message-ID: E1noFfQ-000qCy-Ji@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Fix several issues with the TAP tests of pg_upgrade

This commit addresses the following issues in the TAP tests of
pg_upgrade, introduced in 322becb:
- Remove --port and --host for commands that already rely on a node's
environment PGHOST and PGPORT.
- Switch from run_log() to command_ok(), as all the commands executed in
the tests should succeed.
- Change EXTRA_REGRESS_OPTS to make it count as a shell fragment (fixing
s/OPT/OPTS on a way), to be compatible with the various Makefiles using
it as well as 027_stream_regress.pl in the recovery tests. The command
built for the execution the pg_regress command is reformatted, while on
it, to map with the recovery test doing the same thing (we should
refactor and consolidate that in the future, perhaps).
- Re-add the test for database names stressing the behavior of
backslashes with double quotes, mostly here for Windows.

Tests doable with the upgrade across different major versions still work
the same way.

Reported-by: Noah Misch
Discussion: https://postgr.es/m/20220502042718.GB1565149@rfd.leadboat.com

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/7dd3ee508432730d15c5d3032f37362f6b6e4dd8

Modified Files
--------------
src/bin/pg_upgrade/t/002_pg_upgrade.pl | 54 +++++++++++++++-------------------
1 file changed, 24 insertions(+), 30 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message David Rowley 2022-05-10 08:46:29 Re: pgsql: Specialize tuplesort routines for different kinds of abbreviated
Previous Message Michael Paquier 2022-05-10 00:57:29 Re: pgsql: Remove command checks in tests of pg_basebackup and pg_receivewa