[lit] Make the gold plugin support testing work with a python3
authorChandler Carruth <chandlerc@gmail.com>
Sat, 14 Feb 2015 09:05:56 +0000 (09:05 +0000)
committerChandler Carruth <chandlerc@gmail.com>
Sat, 14 Feb 2015 09:05:56 +0000 (09:05 +0000)
interpreter. Seems that's a better path than pinning to python2.7.

Thanks to Justin for prodding me toward a fix. =]

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@229247 91177308-0d34-0410-b5e6-96231b3b80d8

test/lit.cfg

index ec17c294d3abbc12675b97347143e6543212da41..59d6aa29909d737b00aa925ce5d13e09b61c4f6b 100644 (file)
@@ -353,7 +353,7 @@ def have_ld_plugin_support():
         return False
 
     ld_version = subprocess.Popen(['ld', '--version'], stdout = subprocess.PIPE)
-    if not 'GNU gold' in ld_version.stdout.read():
+    if not 'GNU gold' in ld_version.stdout.read().decode():
         return False
     ld_version.wait()