From ae9370d5b3b9ef60ca66225604750584695799c8 Mon Sep 17 00:00:00 2001 From: Andrej Rode Date: Wed, 30 Nov 2016 17:11:38 -0800 Subject: devtest: flush stdout after print statements --- host/tests/devtest/run_testsuite.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'host/tests') diff --git a/host/tests/devtest/run_testsuite.py b/host/tests/devtest/run_testsuite.py index 2826f25e9..44f8b9081 100755 --- a/host/tests/devtest/run_testsuite.py +++ b/host/tests/devtest/run_testsuite.py @@ -102,6 +102,7 @@ def main(): ser=uhd_info.get('serial') )) print('--- This will take some time. Better grab a cup of tea.') + sys.stdout.flush() args_str = uhd_info['args'] env['_UHD_TEST_ARGS_STR'] = args_str logfile_name = "log{}.log".format( @@ -124,6 +125,7 @@ def main(): stdin=subprocess.PIPE, stdout=subprocess.PIPE, stderr=subprocess.STDOUT, ) print(proc.communicate()[0]) + sys.stdout.flush() if proc.returncode != 0: tests_passed = False print('--- Done testing all attached devices.') -- cgit v1.2.3