Skip to content

Commit 448eed7

Browse files
committed
Move the change to test/Shell subdirctory & update to not set
environment variable.
1 parent 9edcaf1 commit 448eed7

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

lldb/test/Shell/lit.cfg.py

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,15 @@
2121
config.name = "lldb-shell"
2222

2323
# testFormat: The test format to use to interpret tests.
24-
config.test_format = toolchain.ShTestLldb(not llvm_config.use_lit_shell)
24+
# We prefer the lit internal shell which provides a better user experience on
25+
# failures and is faster unless the user explicitly disables it with
26+
# LIT_USE_INTERNAL_SHELL=0 env var.
27+
use_lit_shell = True
28+
lit_shell_env = os.environ.get("LIT_USE_INTERNAL_SHELL")
29+
if lit_shell_env:
30+
use_lit_shell = lit.util.pythonize_bool(lit_shell_env)
31+
32+
config.test_format = toolchain.ShTestLldb(not use_lit_shell)
2533

2634
# suffixes: A list of file extensions to treat as test files. This is overriden
2735
# by individual lit.local.cfg files in the test subdirectories.

0 commit comments

Comments
 (0)