llvm.org GIT mirror llvm / 7906525
Try to fix some failing bots. It doesn't make sense to me why these bots are failing as the traceback does not agree with the source code. It's possible something is stale or there is some other mysterious error, but in any case hopefully this fixes it. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@313469 91177308-0d34-0410-b5e6-96231b3b80d8 Zachary Turner 2 years ago
1 changed file(s) with 8 addition(s) and 6 deletion(s). Raw diff Collapse all Expand all
33 import sys
44
55 import lit.util
6
7 # Choose between lit's internal shell pipeline runner and a real shell. If
8 # LIT_USE_INTERNAL_SHELL is in the environment, we use that as an override.
9 litshenv = os.environ.get("LIT_USE_INTERNAL_SHELL")
10 litsh = lit.util.pythonize_bool(litshenv) if litshenv else (sys.platform == 'win32')
116
127 def binary_feature(on, feature, off_prefix):
138 return feature if on else off_prefix + feature
2015
2116 features = config.available_features
2217
18 self.use_lit_shell = False
2319 # Tweak PATH for Win32 to decide to use bash.exe or not.
2420 if sys.platform == 'win32':
2521 # For tests that require Windows to run.
3026 config.environment['PATH'],
3127 ['cmp.exe', 'grep.exe', 'sed.exe'])
3228 self.with_environment('PATH', path, append_path=True)
29 self.use_lit_shell = True
3330
34 self.use_lit_shell = litsh
31 # Choose between lit's internal shell pipeline runner and a real shell. If
32 # LIT_USE_INTERNAL_SHELL is in the environment, we use that as an override.
33 lit_shell_env = os.environ.get("LIT_USE_INTERNAL_SHELL")
34 if lit_shell_env:
35 self.use_lit_shell = lit.util.pythonize_bool(lit_shell_env)
36
3537 if not self.use_lit_shell:
3638 features.add('shell')
3739