summaryrefslogtreecommitdiffstats
path: root/tests/docker/docker.py
diff options
context:
space:
mode:
authorAlex Bennée2019-09-09 12:36:20 +0200
committerAlex Bennée2019-09-10 10:38:33 +0200
commiteea2153ea832b2279853df7061fb38c696cc06e2 (patch)
treee61e2d4d89bbde07acb217986a766ce41f1c8b99 /tests/docker/docker.py
parenttests/docker: handle missing encoding keyword for subprocess.check_output (diff)
downloadqemu-eea2153ea832b2279853df7061fb38c696cc06e2.tar.gz
qemu-eea2153ea832b2279853df7061fb38c696cc06e2.tar.xz
qemu-eea2153ea832b2279853df7061fb38c696cc06e2.zip
tests/docker: fix final missing .encode when parsing solibs
Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
Diffstat (limited to 'tests/docker/docker.py')
-rwxr-xr-xtests/docker/docker.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/docker/docker.py b/tests/docker/docker.py
index 417b0cdce1..29613afd48 100755
--- a/tests/docker/docker.py
+++ b/tests/docker/docker.py
@@ -111,7 +111,7 @@ def _get_so_libs(executable):
libs = []
ldd_re = re.compile(r"(/.*/)(\S*)")
try:
- ldd_output = subprocess.check_output(["ldd", executable])
+ ldd_output = subprocess.check_output(["ldd", executable]).decode('utf-8')
for line in ldd_output.split("\n"):
search = ldd_re.search(line)
if search and len(search.groups()) == 2: