mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-08-21 18:29:46 +00:00
[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
This commit is contained in:
parent
f5539a356c
commit
b3c0c58ca4
@ -73,7 +73,7 @@ class LitConfig:
|
|||||||
if self.debug:
|
if self.debug:
|
||||||
self.note('load_config from %r' % path)
|
self.note('load_config from %r' % path)
|
||||||
return lit.TestingConfig.TestingConfig.frompath(
|
return lit.TestingConfig.TestingConfig.frompath(
|
||||||
path, config.parent, self, mustExist = True, config = config)
|
path, config, self, mustExist = True)
|
||||||
|
|
||||||
def getBashPath(self):
|
def getBashPath(self):
|
||||||
"""getBashPath - Get the path to 'bash'"""
|
"""getBashPath - Get the path to 'bash'"""
|
||||||
|
@ -9,7 +9,14 @@ class TestingConfig:
|
|||||||
"""
|
"""
|
||||||
|
|
||||||
@staticmethod
|
@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:
|
if config is None:
|
||||||
# Set the environment based on the command line arguments.
|
# Set the environment based on the command line arguments.
|
||||||
environment = {
|
environment = {
|
||||||
@ -38,7 +45,7 @@ class TestingConfig:
|
|||||||
if litConfig.valgrindLeakCheck:
|
if litConfig.valgrindLeakCheck:
|
||||||
available_features.append('vg_leak')
|
available_features.append('vg_leak')
|
||||||
|
|
||||||
config = TestingConfig(parent,
|
config = TestingConfig(None,
|
||||||
name = '<unnamed>',
|
name = '<unnamed>',
|
||||||
suffixes = set(),
|
suffixes = set(),
|
||||||
test_format = None,
|
test_format = None,
|
||||||
|
@ -83,9 +83,8 @@ def getLocalConfig(ts, path_in_suite, litConfig, cache):
|
|||||||
cfgpath = os.path.join(source_path, litConfig.local_config_name)
|
cfgpath = os.path.join(source_path, litConfig.local_config_name)
|
||||||
if litConfig.debug:
|
if litConfig.debug:
|
||||||
litConfig.note('loading local config %r' % cfgpath)
|
litConfig.note('loading local config %r' % cfgpath)
|
||||||
return TestingConfig.frompath(cfgpath, parent, litConfig,
|
return TestingConfig.frompath(cfgpath, parent.clone(cfgpath), litConfig,
|
||||||
mustExist = False,
|
mustExist = False)
|
||||||
config = parent.clone(cfgpath))
|
|
||||||
|
|
||||||
def search(path_in_suite):
|
def search(path_in_suite):
|
||||||
key = (ts, path_in_suite)
|
key = (ts, path_in_suite)
|
||||||
|
Loading…
Reference in New Issue
Block a user