projects
/
postgresql.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a38dce3
)
meson: Flush stdout in testwrap
author
Andres Freund
<andres@anarazel.de>
Wed, 19 Mar 2025 13:04:09 +0000
(09:04 -0400)
committer
Andres Freund
<andres@anarazel.de>
Wed, 19 Mar 2025 13:04:09 +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
patch
|
blob
|
blame
|
history
diff --git
a/src/tools/testwrap
b/src/tools/testwrap
index 9a270beb72d2a7ffd1906cac02198bdc8256d253..9d4a87835403441c3f73d078b9439957fc830f71 100755
(executable)
--- 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: