Use expecteddir option in _run_pg_regress() (#7582)

Fix check-arbitrary-configs tests failure with current REL_16_STABLE.
This is the same problem as described in #7573. I missed pg_regress call
in _run_pg_regress() in that PR.

Co-authored-by: Karina Litskevich <litskevichkarina@gmail.com>
(cherry picked from commit 41e2af8ff5)
pull/7588/head
Karina 2024-04-16 11:44:47 +03:00 committed by Jelte Fennema-Nio
parent 79616bc7db
commit 82637f3e13
1 changed files with 3 additions and 0 deletions

View File

@ -294,6 +294,9 @@ def _run_pg_regress(
output_dir,
"--use-existing",
]
if PG_MAJOR_VERSION >= 16:
command.append("--expecteddir")
command.append(output_dir)
if extra_tests != "":
command.append(extra_tests)