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>
This commit is contained in:
Dimitrios Apostolou 2022-06-15 17:27:59 +02:00
parent 1ab354b245
commit b152c3b50d

View File

@ -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()