[debuginfo-tests] r364325 - [Python 3] Decode check_ouput result as UTF-8

Jonas Devlieghere via llvm-commits llvm-commits at lists.llvm.org
Tue Jun 25 08:58:32 PDT 2019


Author: jdevlieghere
Date: Tue Jun 25 08:58:32 2019
New Revision: 364325

URL: http://llvm.org/viewvc/llvm-project?rev=364325&view=rev
Log:
[Python 3] Decode check_ouput result as UTF-8


Modified:
    debuginfo-tests/trunk/lit.cfg.py

Modified: debuginfo-tests/trunk/lit.cfg.py
URL: http://llvm.org/viewvc/llvm-project/debuginfo-tests/trunk/lit.cfg.py?rev=364325&r1=364324&r2=364325&view=diff
==============================================================================
--- debuginfo-tests/trunk/lit.cfg.py (original)
+++ debuginfo-tests/trunk/lit.cfg.py Tue Jun 25 08:58:32 2019
@@ -89,7 +89,7 @@ lit.util.usePlatformSdkOnDarwin(config,
 
 if platform.system() == 'Darwin':
     import subprocess
-    xcode_lldb_vers = subprocess.check_output(['xcrun', 'lldb', '--version'])
+    xcode_lldb_vers = subprocess.check_output(['xcrun', 'lldb', '--version']).decode("utf-8")
     match = re.search('lldb-(\d+)', xcode_lldb_vers)
     if match:
         apple_lldb_vers = int(match.group(1))




More information about the llvm-commits mailing list