[Python 3] Decode check_ouput result as UTF-8
authorJonas Devlieghere <jonas@devlieghere.com>
Tue, 25 Jun 2019 15:58:32 +0000 (15:58 +0000)
committerJonas Devlieghere <jonas@devlieghere.com>
Tue, 25 Jun 2019 15:58:32 +0000 (15:58 +0000)
llvm-svn: 364325

debuginfo-tests/lit.cfg.py

index c47f453..126f6a0 100644 (file)
@@ -89,7 +89,7 @@ lit.util.usePlatformSdkOnDarwin(config, lit_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))