aboutsummaryrefslogtreecommitdiffstats
path: root/utils/lit/lit/TestingConfig.py
diff options
context:
space:
mode:
authorRafael Espindola <rafael.espindola@gmail.com>2013-07-26 23:17:38 +0000
committerRafael Espindola <rafael.espindola@gmail.com>2013-07-26 23:17:38 +0000
commitc16ab3ed2105b9794ca11680178b646b2762d286 (patch)
tree7b1bc54dc68e56e44645321d70ac0480708cc10a /utils/lit/lit/TestingConfig.py
parent67a38a2875f05ea9c219ab73c4398ee675eb4292 (diff)
downloadexternal_llvm-c16ab3ed2105b9794ca11680178b646b2762d286.zip
external_llvm-c16ab3ed2105b9794ca11680178b646b2762d286.tar.gz
external_llvm-c16ab3ed2105b9794ca11680178b646b2762d286.tar.bz2
Propagate pipefail when cloning.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@187268 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'utils/lit/lit/TestingConfig.py')
-rw-r--r--utils/lit/lit/TestingConfig.py10
1 files changed, 6 insertions, 4 deletions
diff --git a/utils/lit/lit/TestingConfig.py b/utils/lit/lit/TestingConfig.py
index 5d5832e..499f751 100644
--- a/utils/lit/lit/TestingConfig.py
+++ b/utils/lit/lit/TestingConfig.py
@@ -47,7 +47,8 @@ class TestingConfig:
test_exec_root = None,
test_source_root = None,
excludes = [],
- available_features = available_features)
+ available_features = available_features,
+ pipefail = False)
if os.path.exists(path):
# FIXME: Improve detection and error reporting of errors in the
@@ -79,7 +80,7 @@ class TestingConfig:
def __init__(self, parent, name, suffixes, test_format,
environment, substitutions, unsupported, on_clone,
test_exec_root, test_source_root, excludes,
- available_features):
+ available_features, pipefail):
self.parent = parent
self.name = str(name)
self.suffixes = set(suffixes)
@@ -92,7 +93,7 @@ class TestingConfig:
self.test_source_root = test_source_root
self.excludes = set(excludes)
self.available_features = set(available_features)
- self.pipefail = True
+ self.pipefail = pipefail
def clone(self, path):
# FIXME: Chain implementations?
@@ -102,7 +103,8 @@ class TestingConfig:
self.environment, self.substitutions,
self.unsupported, self.on_clone,
self.test_exec_root, self.test_source_root,
- self.excludes, self.available_features)
+ self.excludes, self.available_features,
+ self.pipefail)
if cfg.on_clone:
cfg.on_clone(self, cfg, path)
return cfg