summaryrefslogtreecommitdiffstats
path: root/llvm/utils/lit/tests/lit.cfg
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/utils/lit/tests/lit.cfg')
-rw-r--r--llvm/utils/lit/tests/lit.cfg11
1 files changed, 2 insertions, 9 deletions
diff --git a/llvm/utils/lit/tests/lit.cfg b/llvm/utils/lit/tests/lit.cfg
index 2830956f80d..ebdcb5000b9 100644
--- a/llvm/utils/lit/tests/lit.cfg
+++ b/llvm/utils/lit/tests/lit.cfg
@@ -44,17 +44,10 @@ for attribute in ('llvm_tools_dir', 'lit_tools_dir'):
if directory:
llvm_config.with_environment('PATH', directory, append_path=True)
-# This test suite calls %{lit} to test lit's behavior for the sample test
-# suites in %{inputs}. This test suite's results are then determined in part
-# by %{lit}'s textual output, which includes the output of FileCheck calls
-# within %{inputs}'s test suites. Thus, %{lit} clears environment variables
-# that can affect FileCheck's output.
config.substitutions.append(('%{inputs}', os.path.join(
config.test_source_root, 'Inputs')))
-config.substitutions.append(('%{lit}',
- "{env} %{{python}} {lit}".format(
- env="env -u FILECHECK_OPTS -u FILECHECK_DUMP_INPUT_ON_FAILURE",
- lit=os.path.join(lit_path, 'lit.py'))))
+config.substitutions.append(('%{lit}', "%%{python} %s" % (
+ os.path.join(lit_path, 'lit.py'),)))
config.substitutions.append(('%{python}', '"%s"' % (sys.executable)))
# Enable coverage.py reporting, assuming the coverage module has been installed
OpenPOWER on IntegriCloud