summaryrefslogtreecommitdiff
path: root/test/lit.site.cfg.in
diff options
context:
space:
mode:
authorDaniel Dunbar <daniel@zuster.org>2013-08-07 23:09:10 +0000
committerDaniel Dunbar <daniel@zuster.org>2013-08-07 23:09:10 +0000
commit4229b95d66ce3757b1ef8691da2ef6e9f329b38d (patch)
treeffec29d9a3cfb2f9ac5dba999a00e4aeb6ad995b /test/lit.site.cfg.in
parent41418d17cced656f91038b2482bc9d173b4974b0 (diff)
downloadllvm-4229b95d66ce3757b1ef8691da2ef6e9f329b38d.tar.gz
llvm-4229b95d66ce3757b1ef8691da2ef6e9f329b38d.tar.bz2
llvm-4229b95d66ce3757b1ef8691da2ef6e9f329b38d.tar.xz
[tests] Avoid deprecated except syntax.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@187928 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/lit.site.cfg.in')
-rw-r--r--test/lit.site.cfg.in5
1 files changed, 4 insertions, 1 deletions
diff --git a/test/lit.site.cfg.in b/test/lit.site.cfg.in
index 1ae99eb024..3e7dc5c6a3 100644
--- a/test/lit.site.cfg.in
+++ b/test/lit.site.cfg.in
@@ -1,3 +1,5 @@
+import sys
+
## Autogenerated by LLVM/Clang configuration.
# Do not edit!
config.host_triple = "@LLVM_HOST_TRIPLE@"
@@ -25,7 +27,8 @@ config.have_zlib = "@HAVE_LIBZ@"
# used when we can't determine the tool dir at configuration time.
try:
config.llvm_tools_dir = config.llvm_tools_dir % lit.params
-except KeyError,e:
+except KeyError:
+ e = sys.exc_info()[1]
key, = e.args
lit.fatal("unable to find %r parameter, use '--param=%s=VALUE'" % (key,key))