summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAndres Freund <andres@anarazel.de>2025-03-19 09:04:09 -0400
committerAndres Freund <andres@anarazel.de>2025-03-19 09:04:09 -0400
commit9de86e367a675baee879eeca93f1ddf3da29542f (patch)
treeb576338e614e96a09e70561dc837c6a4f4b46787 /src
parenta38dce3c4a90aa0facef350bc6a502f31b0cfa31 (diff)
meson: Flush stdout in testwrap
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
Diffstat (limited to 'src')
-rwxr-xr-xsrc/tools/testwrap1
1 files changed, 1 insertions, 0 deletions
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: