From b152c3b50d54577ea40e5d59759c1155f45cf191 Mon Sep 17 00:00:00 2001 From: Dimitrios Apostolou Date: Wed, 15 Jun 2022 17:27:59 +0200 Subject: [PATCH] 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 --- util/testrunner/sanitizer-testrunner.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/util/testrunner/sanitizer-testrunner.py b/util/testrunner/sanitizer-testrunner.py index d1f0310d16e..bd9bb0f1ab1 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()