Use command_ok for pg_regress calls in 002_pg_upgrade and 027_stream_regress
Andrew Dunstan <andrew@dunslane.net>
Use command_ok for pg_regress calls in 002_pg_upgrade and 027_stream_regress Now that command_ok() captures and displays failure output, use it instead of system() plus manual diff-dumping in these two tests. This simplifies both scripts and produces consistent, truncated output on failure. Author: Jelte Fennema-Nio <postgres@jeltef.nl> Reviewed-by: Andrew Dunstan <andrew@dunslane.net> Reviewed-by: Corey Huinker <corey.huinker@gmail.com> Discussion: https://postgr.es/m/DFYFWM053WHS.10K8ZPJ605UFK@jeltef.nl
Files
| Path | Change | +/− |
|---|---|---|
| src/bin/pg_upgrade/t/002_pg_upgrade.pl | modified | +14 −26 |
| src/test/recovery/t/027_stream_regress.pl | modified | +15 −40 |
Discussion
- meson: Make test output much more useful on failure (both in CI and locally) 25 messages · 2026-01-26 → 2026-05-26