Improve TestLib::system_or_bail error reporting

Alvaro Herrera <alvherre@alvh.no-ip.org>

Commit: 5798ca529935698ab976780565fb2b4d8d34d810
Author: Alvaro Herrera <alvherre@alvh.no-ip.org>
Date: 2021-07-06T21:51:59Z
Releases: 15.0
Improve TestLib::system_or_bail error reporting

The original coding was not quoting the complete failing command, and it
wasn't printing the reason for the failure either.  Do both.

This is cosmetic only, so no backpatch.

Author: Álvaro Herrera <alvherre@alvh.no-ip.org>
Reviewed-by: Tom Lane <tgl@sss.pgh.pa.us>
Reviewed-by: Daniel Gustafsson <daniel@yesql.se>
Discussion: https://postgr.es/m/202106301524.eq5pblzstapj@alvherre.pgsql

Files

PathChange+/−
src/test/perl/TestLib.pm modified +22 −2

Discussion