aboutsummaryrefslogtreecommitdiffstats
path: root/host/tests/devtest/run_testsuite.py
diff options
context:
space:
mode:
authorTrung Tran <trung.tran@ettus.com>2019-01-20 02:00:52 -0800
committerBrent Stapleton <brent.stapleton@ettus.com>2019-01-23 11:03:39 -0800
commit3f77f6d5e0a63aed64d58fb8e8276b098cef2486 (patch)
tree7f29c93a5815061c82c1338bc1e201c6172cb2f5 /host/tests/devtest/run_testsuite.py
parentc6618dd8d3daf986f40d0877231d106a5789d984 (diff)
downloaduhd-3f77f6d5e0a63aed64d58fb8e8276b098cef2486.tar.gz
uhd-3f77f6d5e0a63aed64d58fb8e8276b098cef2486.tar.bz2
uhd-3f77f6d5e0a63aed64d58fb8e8276b098cef2486.zip
devtest: add universal_newlines to subprocess call
subprocess call in python3+ return stderr and stdout object is byte object instead of text. This caused many issue with parsing the ouput in devtest. These are not an issue in python2. This change will make devtest more python3 compatible. Signed-off-by: Trung.Tran<trung.tran@ettus.com>
Diffstat (limited to 'host/tests/devtest/run_testsuite.py')
-rwxr-xr-xhost/tests/devtest/run_testsuite.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/host/tests/devtest/run_testsuite.py b/host/tests/devtest/run_testsuite.py
index e243a4cda..99871b150 100755
--- a/host/tests/devtest/run_testsuite.py
+++ b/host/tests/devtest/run_testsuite.py
@@ -122,6 +122,7 @@ def main():
stdin=subprocess.PIPE,
stdout=subprocess.PIPE,
stderr=subprocess.STDOUT,
+ universal_newlines=True
)
print(proc.communicate()[0])
sys.stdout.flush()