Fix expecteddir argument in pg_regress

Anthonin Bonnefoy <anthonin.bonnefoy@datadoghq.com>

From: Anthonin Bonnefoy <anthonin.bonnefoy@datadoghq.com>
To: PostgreSQL Hackers <pgsql-hackers@postgresql.org>
Date: 2024-03-11T08:23:16Z
Lists: pgsql-hackers

Attachments

Hi all!

pg_regress accepts the expecteddir argument. However, it is never used
and outputdir is used instead to get the expected files paths.

This patch fixes this and uses the expecteddir argument as expected.

Regards,
Anthonin

Commits

  1. Fix handling of expecteddir in pg_regress

  2. regress: allow to specify directory containing expected files, for ecpg