]> git.ipfire.org Git - thirdparty/postgresql.git/commitdiff
meson: Flush stdout in testwrap
authorAndres Freund <andres@anarazel.de>
Wed, 19 Mar 2025 13:04:10 +0000 (09:04 -0400)
committerAndres Freund <andres@anarazel.de>
Wed, 19 Mar 2025 13:04:10 +0000 (09:04 -0400)
Otherwise the progress won't reliably be displayed during a test.

Reviewed-by: Noah Misch <noah@leadboat.com>
Discussion: https://postgr.es/m/kx6xu7suexal5vwsxpy7ybgkcznx6hgywbuhkr6qabcwxjqax2@i4pcpk75jvaa
Backpatch-through: 16

src/tools/testwrap

index 68976fb2f5d9676180386d124843ca4a0a4a50ea..f9e38c84bd4cb23ceb69797afcc0fea566935235 100755 (executable)
@@ -46,6 +46,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: