Skip to content

Commit 718d812

Browse files
committed
test: decode the output of lldb -P as UTF-8
We currently use the byte string as the PYTHONPATH with Python 3, which is odd.
1 parent 8a45c9c commit 718d812

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/lit.cfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ def get_lldb_python_path(lldb_build_root):
102102
lldb_path = os.path.join(lldb_build_root, 'bin', 'lldb')
103103
if not os.access(lldb_path, os.F_OK):
104104
return None
105-
return subprocess.check_output([lldb_path, "-P"]).rstrip()
105+
return subprocess.check_output([lldb_path, "-P"]).rstrip().decode('utf-8')
106106

107107
###
108108

0 commit comments

Comments
 (0)