aboutsummaryrefslogtreecommitdiffstats
path: root/host/tests/devtest/uhd_test_base.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/uhd_test_base.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/uhd_test_base.py')
-rwxr-xr-xhost/tests/devtest/uhd_test_base.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/host/tests/devtest/uhd_test_base.py b/host/tests/devtest/uhd_test_base.py
index d77226941..8d965eef7 100755
--- a/host/tests/devtest/uhd_test_base.py
+++ b/host/tests/devtest/uhd_test_base.py
@@ -77,7 +77,8 @@ class shell_application(object):
stdout=PIPE,
stderr=PIPE,
close_fds=True,
- env=env
+ env=env,
+ universal_newlines=True
)
self.stdout, self.stderr = proc.communicate()
self.returncode = proc.returncode