summaryrefslogtreecommitdiff
path: root/utils/lit/tests/lit.cfg
diff options
context:
space:
mode:
authorDaniel Dunbar <daniel@zuster.org>2013-08-09 21:39:17 +0000
committerDaniel Dunbar <daniel@zuster.org>2013-08-09 21:39:17 +0000
commit4981a6ca97aac2b5a491895cdfd87c44f98bd7a0 (patch)
treefd99d810b9e60df941c671c4b3fdd3d504a2cd3e /utils/lit/tests/lit.cfg
parent1e07de352947aaf2f9137113cc594d8204da2b77 (diff)
downloadllvm-4981a6ca97aac2b5a491895cdfd87c44f98bd7a0.tar.gz
llvm-4981a6ca97aac2b5a491895cdfd87c44f98bd7a0.tar.bz2
llvm-4981a6ca97aac2b5a491895cdfd87c44f98bd7a0.tar.xz
[lit] Update lit's own tests to use lit_config and lit package, as appropriate.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@188107 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'utils/lit/tests/lit.cfg')
-rw-r--r--utils/lit/tests/lit.cfg4
1 files changed, 3 insertions, 1 deletions
diff --git a/utils/lit/tests/lit.cfg b/utils/lit/tests/lit.cfg
index 32760ceb27..f148c911aa 100644
--- a/utils/lit/tests/lit.cfg
+++ b/utils/lit/tests/lit.cfg
@@ -2,6 +2,8 @@
import os
+import lit.formats
+
# Configuration file for the 'lit' test runner.
# name: The name of this test suite.
@@ -31,6 +33,6 @@ config.substitutions.append(('%{lit}', os.path.join(src_root, 'lit.py')))
# Enable coverage.py reporting, assuming the coverage module has been installed
# and sitecustomize.py in the virtualenv has been modified appropriately.
-if lit.params.get('check-coverage', None):
+if lit_config.params.get('check-coverage', None):
config.environment['COVERAGE_PROCESS_START'] = os.path.join(
os.path.dirname(__file__), ".coveragerc")