pgsql: Fix several issues with the TAP tests of pg_upgrade - Mailing list pgsql-committers

From Michael Paquier
Subject pgsql: Fix several issues with the TAP tests of pg_upgrade
Date
Msg-id E1noFfQ-000qCy-Ji@gemulon.postgresql.org
Whole thread Raw
List 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(-)


pgsql-committers by date:

Previous
From: Michael Paquier
Date:
Subject: Re: pgsql: Remove command checks in tests of pg_basebackup and pg_receivewa
Next
From: David Rowley
Date:
Subject: Re: pgsql: Specialize tuplesort routines for different kinds of abbreviated