[MLIR] Remove ability to use external shell

The external shell is getting removed soon, so clean up the logic here
to enable it.

Reviewers: petrhosek, jpienaar, ilovepi, joker-eph

Pull Request: https://github.com/llvm/llvm-project/pull/209565
This commit is contained in:
Aiden Grossman 2026-07-14 18:09:09 -07:00 committed by GitHub
parent b208160cd0
commit 4376c0b756
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -19,18 +19,8 @@ from lit.llvm.subst import FindTool
# name: The name of this test suite.
config.name = "MLIR"
# TODO: Consolidate the logic for turning on the internal shell by default for all LLVM test suites.
# See https://github.com/llvm/llvm-project/issues/106636 for more details.
#
# We prefer the lit internal shell which provides a better user experience on failures
# unless the user explicitly disables it with LIT_USE_INTERNAL_SHELL=0 env var.
use_lit_shell = True
lit_shell_env = os.environ.get("LIT_USE_INTERNAL_SHELL")
if lit_shell_env:
use_lit_shell = lit.util.pythonize_bool(lit_shell_env)
# Set the test format based on shell configuration
config.test_format = lit.formats.ShTest(execute_external=not use_lit_shell)
config.test_format = lit.formats.ShTest()
# suffixes: A list of file extensions to treat as test files.
config.suffixes = [