summaryrefslogtreecommitdiffstats
path: root/llvm/utils
diff options
context:
space:
mode:
authorZachary Turner <zturner@google.com>2017-09-16 19:20:53 +0000
committerZachary Turner <zturner@google.com>2017-09-16 19:20:53 +0000
commitb9fad9fd12c624deb636fb060f605c86a54d5e7c (patch)
tree794669197475b0524e1433c96f912d3619e08df8 /llvm/utils
parent6326d56195756a9b4ceb7ac97364ecbc09b27c93 (diff)
downloadbcm5719-llvm-b9fad9fd12c624deb636fb060f605c86a54d5e7c.tar.gz
bcm5719-llvm-b9fad9fd12c624deb636fb060f605c86a54d5e7c.zip
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. llvm-svn: 313469
Diffstat (limited to 'llvm/utils')
-rw-r--r--llvm/utils/lit/lit/llvm/config.py14
1 files changed, 8 insertions, 6 deletions
diff --git a/llvm/utils/lit/lit/llvm/config.py b/llvm/utils/lit/lit/llvm/config.py
index 835fd8ec3f8..7e523307eb7 100644
--- a/llvm/utils/lit/lit/llvm/config.py
+++ b/llvm/utils/lit/lit/llvm/config.py
@@ -5,11 +5,6 @@ import sys
import lit.util
-# Choose between lit's internal shell pipeline runner and a real shell. If
-# LIT_USE_INTERNAL_SHELL is in the environment, we use that as an override.
-litshenv = os.environ.get("LIT_USE_INTERNAL_SHELL")
-litsh = lit.util.pythonize_bool(litshenv) if litshenv else (sys.platform == 'win32')
-
def binary_feature(on, feature, off_prefix):
return feature if on else off_prefix + feature
@@ -21,6 +16,7 @@ class LLVMConfig(object):
features = config.available_features
+ self.use_lit_shell = False
# Tweak PATH for Win32 to decide to use bash.exe or not.
if sys.platform == 'win32':
# For tests that require Windows to run.
@@ -31,8 +27,14 @@ class LLVMConfig(object):
config.environment['PATH'],
['cmp.exe', 'grep.exe', 'sed.exe'])
self.with_environment('PATH', path, append_path=True)
+ self.use_lit_shell = True
+
+ # Choose between lit's internal shell pipeline runner and a real shell. If
+ # LIT_USE_INTERNAL_SHELL is in the environment, we use that as an override.
+ lit_shell_env = os.environ.get("LIT_USE_INTERNAL_SHELL")
+ if lit_shell_env:
+ self.use_lit_shell = lit.util.pythonize_bool(lit_shell_env)
- self.use_lit_shell = litsh
if not self.use_lit_shell:
features.add('shell')
OpenPOWER on IntegriCloud