blob: ee496674fdb6209eb95d88e7cdff3b1848e4a132 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
import os
import lit.formats
import lit.util
config.name = "shtest-readfile"
config.suffixes = [".txt"]
lit_shell_env = os.environ.get("LIT_USE_INTERNAL_SHELL")
use_lit_shell = lit.util.pythonize_bool(lit_shell_env)
config.test_format = lit.formats.ShTest(execute_external=not use_lit_shell)
config.test_source_root = None
config.test_exec_root = None
# If we are testing with the external shell, remove the fake-externals from
# PATH so that we use mkdir in the tests.
if not use_lit_shell:
path_parts = config.environment["PATH"].split(os.path.pathsep)
path_parts = [path_part for path_part in path_parts if "fake-externals" not in path_part]
config.environment["PATH"] = os.path.pathsep.join(path_parts)
|