pgsql: Fix pgbench TAP test failure with funky file names (redux)

Started by Andrew Dunstanover 7 years ago1 messagescomitters
Jump to latest
#1Andrew Dunstan
andrew@dunslane.net

Fix pgbench TAP test failure with funky file names (redux)

This test fails if the containing directory contains a funny character
such as a space or some perl metacharacter. To avoid that, we check for
files names using readdir and a regex, rather than using a glob pattern.

Discussion: /messages/by-id/CAM6_UM6dGdU39PKAC24T+HD9ouy0jLN9vH6163K8QEEzr__iZw@mail.gmail.com

Author: Fabien COELHO
Reviewed-by: Raúl Marín Rodríguez

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/e988878f85436dcd74e503c94f5b8e2b76a08711

Modified Files
--------------
src/bin/pgbench/t/001_pgbench_with_server.pl | 53 ++++++++++++++++++++--------
1 file changed, 39 insertions(+), 14 deletions(-)