aboutsummaryrefslogtreecommitdiffstats
path: root/test/lit.cfg
diff options
context:
space:
mode:
authorDaniel Dunbar <daniel@zuster.org>2013-08-07 23:09:24 +0000
committerDaniel Dunbar <daniel@zuster.org>2013-08-07 23:09:24 +0000
commitf34117d84991d2bd2c722cf3a36244fe4acdc79c (patch)
treeb569bd4945e7dc6aeb647d4c68416035adfc46cb /test/lit.cfg
parent4229b95d66ce3757b1ef8691da2ef6e9f329b38d (diff)
downloadexternal_llvm-f34117d84991d2bd2c722cf3a36244fe4acdc79c.zip
external_llvm-f34117d84991d2bd2c722cf3a36244fe4acdc79c.tar.gz
external_llvm-f34117d84991d2bd2c722cf3a36244fe4acdc79c.tar.bz2
[tests] Make string encoding issues explicit.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@187929 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/lit.cfg')
-rw-r--r--test/lit.cfg6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/lit.cfg b/test/lit.cfg
index c018674..dc08c67 100644
--- a/test/lit.cfg
+++ b/test/lit.cfg
@@ -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()