Add function to pump IPC process until string match
authorDaniel Gustafsson <dgustafsson@postgresql.org>
Wed, 23 Feb 2022 13:22:16 +0000 (14:22 +0100)
committerDaniel Gustafsson <dgustafsson@postgresql.org>
Wed, 23 Feb 2022 13:22:16 +0000 (14:22 +0100)
commit6da65a3f9a9deae4fdcc768c612b0c8f52759f75
treecad91d0d94ec95e4e7f63884952bcef13f8a4334
parent91d3580535238abf93c67a6d3dce64f0e8c3cc6d
Add function to pump IPC process until string match

Refactor the recovery tests to not carry a local duplicated copy of
the pump_until function which pumps a process until a defined string
is seen on a stream. This reduces duplication, and is in preparation
for another patch which will also use this functionality.

Reviewed-by: Michael Paquier <michael@paquier.xyz>
Discussion https://postgr.es/m/YgynUafCyIu3jIhC@paquier.xyz
src/test/perl/PostgreSQL/Test/Utils.pm
src/test/recovery/t/013_crash_restart.pl
src/test/recovery/t/022_crash_temp_files.pl