if self.debug:
self.note('load_config from %r' % path)
return lit.TestingConfig.TestingConfig.frompath(
- path, config.parent, self, mustExist = True, config = config)
+ path, config, self, mustExist = True)
def getBashPath(self):
"""getBashPath - Get the path to 'bash'"""
"""
@staticmethod
- def frompath(path, parent, litConfig, mustExist, config = None):
+ def frompath(path, config, litConfig, mustExist):
+ """
+ frompath(path, config, litConfig, mustExist) -> TestingConfig
+
+ Load the configuration module at the provided path into the given config
+ object (or create a new one if None is provided) and return the config.
+ """
+
if config is None:
# Set the environment based on the command line arguments.
environment = {
if litConfig.valgrindLeakCheck:
available_features.append('vg_leak')
- config = TestingConfig(parent,
+ config = TestingConfig(None,
name = '<unnamed>',
suffixes = set(),
test_format = None,
cfgpath = os.path.join(source_path, litConfig.local_config_name)
if litConfig.debug:
litConfig.note('loading local config %r' % cfgpath)
- return TestingConfig.frompath(cfgpath, parent, litConfig,
- mustExist = False,
- config = parent.clone(cfgpath))
+ return TestingConfig.frompath(cfgpath, parent.clone(cfgpath), litConfig,
+ mustExist = False)
def search(path_in_suite):
key = (ts, path_in_suite)