summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndres Freund2025-03-19 13:04:09 +0000
committerAndres Freund2025-03-19 13:04:09 +0000
commit5941946d0934b9eccb0d5bfebd40b155249a0130 (patch)
tree0b5ebd0241f0401361ed5397f3235d910052910b
parent190dc27998d5b7b4c36e12bebe62f7176f4b4507 (diff)
meson: Flush stdout in testwrap
Otherwise the progress won't reliably be displayed during a test. Reviewed-by: Noah Misch <[email protected]> Discussion: https://postgr.es/m/kx6xu7suexal5vwsxpy7ybgkcznx6hgywbuhkr6qabcwxjqax2@i4pcpk75jvaa Backpatch-through: 16
-rwxr-xr-xsrc/tools/testwrap1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/tools/testwrap b/src/tools/testwrap
index 8ae8fb79ba7..21105146c9d 100755
--- a/src/tools/testwrap
+++ b/src/tools/testwrap
@@ -61,6 +61,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: