aboutsummaryrefslogtreecommitdiffstats
path: root/host
diff options
context:
space:
mode:
Diffstat (limited to 'host')
-rwxr-xr-xhost/tests/devtest/run_testsuite.py1
-rwxr-xr-xhost/tests/devtest/uhd_test_base.py3
-rw-r--r--host/tests/devtest/usrp_probe.py2
3 files changed, 4 insertions, 2 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()
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
diff --git a/host/tests/devtest/usrp_probe.py b/host/tests/devtest/usrp_probe.py
index 43dd999c1..c7b73288e 100644
--- a/host/tests/devtest/usrp_probe.py
+++ b/host/tests/devtest/usrp_probe.py
@@ -17,7 +17,7 @@ def get_usrp_list(device_filter=None, env=None):
cmd = ['uhd_find_devices']
if device_filter is not None:
cmd += ['--args', device_filter]
- output = subprocess.check_output(cmd, env=env)
+ output = subprocess.check_output(cmd, env=env, universal_newlines=True)
except subprocess.CalledProcessError:
return []
split_re = "\n*-+\n-- .*\n-+\n"