Skip to content
Open
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
12 changes: 11 additions & 1 deletion unified-runtime/test/lit.cfg.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,17 @@

# Default test configuration - unit tests (that use formats.GoogleTest) use a different test suite specified by
# lit.cfg.py (which does not inherit from this one)
config.test_format = lit.formats.ShTest(True)
#
# force_execute_external is required to keep using external shell execution
# (needed by these tests, e.g. LD_LIBRARY_PATH manipulation and %maybe-v1/
# %maybe-v2 RUN-line prefixes) on newer lit versions (LLVM-23+) where
# ShTest(execute_external=True) alone is deprecated and raises a ValueError.
# Older lit releases (e.g. the lit==18.1.8 PyPI package used by some CI jobs)
# don't recognize this keyword argument at all, so fall back gracefully.
try:
config.test_format = lit.formats.ShTest(True, force_execute_external=True)
except TypeError:
config.test_format = lit.formats.ShTest(True)
config.suffixes = [".test"]


Expand Down
Loading