Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion llvm/utils/lit/tests/lit.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@ import lit.formats
from lit.llvm import llvm_config

# Configuration file for the 'lit' test runner.
# Note that lit can be tested in a "standalone" mode, where it is run
# without using the LLVM build directory.
# In this case the llvm_config object is not available, and we expect
# tools like FileCheck to be available in the PATH.

# name: The name of this test suite.
config.name = "lit"
Expand Down Expand Up @@ -39,7 +43,6 @@ lit_path = os.path.abspath(lit_path)

# Required because some tests import the lit module
if llvm_config:
llvm_config.use_default_substitutions()
llvm_config.with_environment("PYTHONPATH", lit_path, append_path=True)
else:
config.environment["PYTHONPATH"] = lit_path
Expand Down
2 changes: 1 addition & 1 deletion llvm/utils/lit/tests/windows-pools.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Create a directory with 20 files and check the number of pools and workers per pool that lit will use.

# RUN: rm -Rf %t.dir && mkdir -p %t.dir
# RUN: %python -c "for i in range(20): open(rf'%t.dir/file{i}.txt', 'w').write('RUN:')"
# RUN: %{python} -c "for i in range(20): open(rf'%t.dir/file{i}.txt', 'w').write('RUN:')"

# RUN: echo "import lit.formats" > %t.dir/lit.cfg
# RUN: echo "config.name = \"top-level-suite\"" >> %t.dir/lit.cfg
Expand Down