summaryrefslogtreecommitdiffstats
path: root/util
diff options
context:
space:
mode:
authorDimitrios Apostolou <jimis@qt.io>2022-06-15 17:27:59 +0200
committerDimitrios Apostolou <jimis@qt.io>2022-06-16 21:04:48 +0200
commitb152c3b50d54577ea40e5d59759c1155f45cf191 (patch)
treeb97d6ca56db32bde9abbea562ec1d39c0c36d264 /util
parent1ab354b2453bce60cd5cd800d87a83fc9e30a0c6 (diff)
sanitizer-testrunner: enforce line buffering
Under coin-agent, the stdout/err are not a tty, so flushing needs to be forced. Change-Id: I06de43328a4f4d1c17df7188f31b5f7bc63e3335 Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
Diffstat (limited to 'util')
-rwxr-xr-xutil/testrunner/sanitizer-testrunner.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/util/testrunner/sanitizer-testrunner.py b/util/testrunner/sanitizer-testrunner.py
index d1f0310d16..bd9bb0f1ab 100755
--- a/util/testrunner/sanitizer-testrunner.py
+++ b/util/testrunner/sanitizer-testrunner.py
@@ -32,7 +32,7 @@ issues_detected = False
for line in f:
if proc:
# We don't want the stderr of the subprocess to disappear, so print it.
- print(line, file=sys.stderr, end="")
+ print(line, file=sys.stderr, end="", flush=True)
if detect_ASAN.match(line):
issues_detected = True
f.close()