[llvm] r188006 - [lit] Remove on_clone member, which is no longer used.
Daniel Dunbar
daniel at zuster.org
Thu Aug 8 13:59:13 PDT 2013
Author: ddunbar
Date: Thu Aug 8 15:59:13 2013
New Revision: 188006
URL: http://llvm.org/viewvc/llvm-project?rev=188006&view=rev
Log:
[lit] Remove on_clone member, which is no longer used.
Modified:
llvm/trunk/test/lit.cfg
llvm/trunk/utils/lit/lit/TestingConfig.py
Modified: llvm/trunk/test/lit.cfg
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/lit.cfg?rev=188006&r1=188005&r2=188006&view=diff
==============================================================================
--- llvm/trunk/test/lit.cfg (original)
+++ llvm/trunk/test/lit.cfg Thu Aug 8 15:59:13 2013
@@ -39,8 +39,8 @@ config.test_format = lit.formats.ShTest(
# To ignore test output on stderr so it doesn't trigger failures uncomment this:
#config.test_format = lit.formats.TclTest(ignoreStdErr=True)
-# suffixes: A list of file extensions to treat as test files, this is actually
-# set by on_clone().
+# suffixes: A list of file extensions to treat as test files. This is overriden
+# by individual lit.local.cfg files in the test subdirectories.
config.suffixes = []
# excludes: A list of directories to exclude from the testsuite. The 'Inputs'
Modified: llvm/trunk/utils/lit/lit/TestingConfig.py
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/utils/lit/lit/TestingConfig.py?rev=188006&r1=188005&r2=188006&view=diff
==============================================================================
--- llvm/trunk/utils/lit/lit/TestingConfig.py (original)
+++ llvm/trunk/utils/lit/lit/TestingConfig.py Thu Aug 8 15:59:13 2013
@@ -45,7 +45,6 @@ class TestingConfig:
environment = environment,
substitutions = [],
unsupported = False,
- on_clone = None,
test_exec_root = None,
test_source_root = None,
excludes = [],
@@ -90,7 +89,7 @@ class TestingConfig:
return config
def __init__(self, parent, name, suffixes, test_format,
- environment, substitutions, unsupported, on_clone,
+ environment, substitutions, unsupported,
test_exec_root, test_source_root, excludes,
available_features, pipefail):
self.parent = parent
@@ -100,7 +99,6 @@ class TestingConfig:
self.environment = dict(environment)
self.substitutions = list(substitutions)
self.unsupported = unsupported
- self.on_clone = on_clone
self.test_exec_root = test_exec_root
self.test_source_root = test_source_root
self.excludes = set(excludes)
@@ -111,15 +109,12 @@ class TestingConfig:
# FIXME: Chain implementations?
#
# FIXME: Allow extra parameters?
- cfg = TestingConfig(self, self.name, self.suffixes, self.test_format,
- self.environment, self.substitutions,
- self.unsupported, self.on_clone,
- self.test_exec_root, self.test_source_root,
- self.excludes, self.available_features,
- self.pipefail)
- if cfg.on_clone:
- cfg.on_clone(self, cfg, path)
- return cfg
+ return TestingConfig(self, self.name, self.suffixes, self.test_format,
+ self.environment, self.substitutions,
+ self.unsupported,
+ self.test_exec_root, self.test_source_root,
+ self.excludes, self.available_features,
+ self.pipefail)
def finish(self, litConfig):
"""finish() - Finish this config object, after loading is complete."""
More information about the llvm-commits
mailing list