From: Andres Freund Date: Wed, 19 Mar 2025 13:04:09 +0000 (-0400) Subject: meson: Flush stdout in testwrap X-Git-Tag: REL_17_5~69 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=9de86e367a675baee879eeca93f1ddf3da29542f;p=thirdparty%2Fpostgresql.git meson: Flush stdout in testwrap Otherwise the progress won't reliably be displayed during a test. Reviewed-by: Noah Misch Discussion: https://postgr.es/m/kx6xu7suexal5vwsxpy7ybgkcznx6hgywbuhkr6qabcwxjqax2@i4pcpk75jvaa Backpatch-through: 16 --- diff --git a/src/tools/testwrap b/src/tools/testwrap index 9a270beb72d..9d4a8783540 100755 --- a/src/tools/testwrap +++ b/src/tools/testwrap @@ -51,6 +51,7 @@ for line in sp.stdout: if line.startswith(b'ok '): line = line.replace(b' # TODO ', b' # testwrap-overridden-TODO ', 1) sys.stdout.buffer.write(line) + sys.stdout.flush() returncode = sp.wait() if returncode == 0: