[llvm] b4c30b0 - Fix LLVM test to use %python instead of python

Mehdi Amini via llvm-commits llvm-commits at lists.llvm.org
Mon Dec 1 05:53:10 PST 2025


Author: Mehdi Amini
Date: 2025-12-01T05:53:02-08:00
New Revision: b4c30b0e1ece2bc97ef91e4bbed422c2e620be05

URL: https://github.com/llvm/llvm-project/commit/b4c30b0e1ece2bc97ef91e4bbed422c2e620be05
DIFF: https://github.com/llvm/llvm-project/commit/b4c30b0e1ece2bc97ef91e4bbed422c2e620be05.diff

LOG: Fix LLVM test to use %python instead of python

This uses lit substitution, which fixes running this test on
some environment where 'python' isn't in the path.

Added: 
    

Modified: 
    llvm/utils/lit/tests/windows-pools.py

Removed: 
    


################################################################################
diff  --git a/llvm/utils/lit/tests/windows-pools.py b/llvm/utils/lit/tests/windows-pools.py
index 85110b37c2601..1e3a012dc1706 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


        


More information about the llvm-commits mailing list