mirror of
https://github.com/RPCS3/llvm.git
synced 2024-12-15 16:09:57 +00:00
[tests] Make string encoding issues explicit.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@187929 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
4229b95d66
commit
f34117d849
@ -283,11 +283,11 @@ import subprocess
|
||||
try:
|
||||
llc_cmd = subprocess.Popen([os.path.join(llvm_tools_dir, 'llc'), '-version'],
|
||||
stdout = subprocess.PIPE)
|
||||
except OSError, why:
|
||||
print "Could not find llc in " + llvm_tools_dir
|
||||
except OSError:
|
||||
print("Could not find llc in " + llvm_tools_dir)
|
||||
exit(42)
|
||||
|
||||
if re.search(r'with assertions', llc_cmd.stdout.read()):
|
||||
if re.search(r'with assertions', llc_cmd.stdout.read().decode('ascii')):
|
||||
config.available_features.add('asserts')
|
||||
llc_cmd.wait()
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user