diff --git a/llvm/utils/lit/tests/lit.cfg b/llvm/utils/lit/tests/lit.cfg index 61ee0154071df..922fbd6c9c872 100644 --- a/llvm/utils/lit/tests/lit.cfg +++ b/llvm/utils/lit/tests/lit.cfg @@ -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" @@ -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 diff --git a/llvm/utils/lit/tests/windows-pools.py b/llvm/utils/lit/tests/windows-pools.py index 1e3a012dc1706..6ba43ecca6284 100644 --- a/llvm/utils/lit/tests/windows-pools.py +++ b/llvm/utils/lit/tests/windows-pools.py @@ -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