aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrej Rode <andrej.rode@ettus.com>2016-11-30 17:11:38 -0800
committerMartin Braun <martin.braun@ettus.com>2016-12-09 11:25:23 -0800
commit84151b5977076668548d110c3255c81f0ac83b9a (patch)
treed7acdf2f79bb367b81401f9c5541c4463b7e3864
parent992b31d23414e019735b87a0ed5e458711dffb6b (diff)
downloaduhd-84151b5977076668548d110c3255c81f0ac83b9a.tar.gz
uhd-84151b5977076668548d110c3255c81f0ac83b9a.tar.bz2
uhd-84151b5977076668548d110c3255c81f0ac83b9a.zip
devtest: flush stdout after print statements
-rwxr-xr-xhost/tests/devtest/run_testsuite.py2
1 files changed, 2 insertions, 0 deletions
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.')