Improve handling and logging of TAP tests for pg_upgrade

Michael Paquier <michael@paquier.xyz>

Commit: 73db8f4d17ed4efb7709f1cafd5b1dd0285b0842
Author: Michael Paquier <michael@paquier.xyz>
Date: 2022-04-01T03:45:40Z
Releases: 15.0
Improve handling and logging of TAP tests for pg_upgrade

This commit includes a set of improvements to help with the debugging of
failures in these new TAP tests:
- Instead of a plain diff command to compare the dumps generated, use
File::Compare::compare for the same effect.  diff is still used to
provide more context in the event of an error.
- Log the contents of regression.diffs if the pg_regress command fails.
- Unify the format of the logs generated, getting inspiration from the
style used in 027_stream_regress.pl.

wrasse is the only buildfarm member that has reported a failure until
now after the introduction of 322becb, complaining that the dumps
generated do not match, and I am lacking information to understand what
is going in this environment.

Files

PathChange+/−
src/bin/pg_upgrade/t/002_pg_upgrade.pl modified +31 −9