llvm.org GIT mirror llvm / b3c0c58
[lit] Eliminate parent argument from TestingConfig.frompath(), which is effectively unused. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@188032 91177308-0d34-0410-b5e6-96231b3b80d8 Daniel Dunbar 6 years ago
3 changed file(s) with 12 addition(s) and 6 deletion(s). Raw diff Collapse all Expand all
7272 if self.debug:
7373 self.note('load_config from %r' % path)
7474 return lit.TestingConfig.TestingConfig.frompath(
75 path, config.parent, self, mustExist = True, config = config)
75 path, config, self, mustExist = True)
7676
7777 def getBashPath(self):
7878 """getBashPath - Get the path to 'bash'"""
88 """
99
1010 @staticmethod
11 def frompath(path, parent, litConfig, mustExist, config = None):
11 def frompath(path, config, litConfig, mustExist):
12 """
13 frompath(path, config, litConfig, mustExist) -> TestingConfig
14
15 Load the configuration module at the provided path into the given config
16 object (or create a new one if None is provided) and return the config.
17 """
18
1219 if config is None:
1320 # Set the environment based on the command line arguments.
1421 environment = {
3744 if litConfig.valgrindLeakCheck:
3845 available_features.append('vg_leak')
3946
40 config = TestingConfig(parent,
47 config = TestingConfig(None,
4148 name = '',
4249 suffixes = set(),
4350 test_format = None,
8282 cfgpath = os.path.join(source_path, litConfig.local_config_name)
8383 if litConfig.debug:
8484 litConfig.note('loading local config %r' % cfgpath)
85 return TestingConfig.frompath(cfgpath, parent, litConfig,
86 mustExist = False,
87 config = parent.clone(cfgpath))
85 return TestingConfig.frompath(cfgpath, parent.clone(cfgpath), litConfig,
86 mustExist = False)
8887
8988 def search(path_in_suite):
9089 key = (ts, path_in_suite)