Allow pg_regress.c wrappers to postprocess test result files.
Tom Lane <tgl@sss.pgh.pa.us>
Allow pg_regress.c wrappers to postprocess test result files. Add an optional callback to regression_main() that, if provided, is invoked on each test output file before we try to compare it to the expected-result file. The main and isolation test programs don't need this (yet). In pg_regress_ecpg, add a filter that eliminates target-host details from "could not connect" error reports. This filter doesn't do anything as of this commit, but it will be needed by the next one. In the long run we might want to provide some more general, perhaps pattern-based, filtering mechanism for test output. For now, this will solve the immediate problem. Discussion: https://postgr.es/m/BN6PR05MB3492948E4FD76C156E747E8BC9160@BN6PR05MB3492.namprd05.prod.outlook.com
Files
| Path | Change | +/− |
|---|---|---|
| src/interfaces/ecpg/test/pg_regress_ecpg.c | modified | +88 −7 |
| src/test/isolation/isolation_main.c | modified | +4 −1 |
| src/test/regress/pg_regress.c | modified | +19 −10 |
| src/test/regress/pg_regress.h | modified | +19 −5 |
| src/test/regress/pg_regress_main.c | modified | +4 −1 |
Discussion
- Multiple hosts in connection string failed to failover in non-hot standby mode 38 messages · 2020-10-27 → 2021-09-14