提交 521ca060 编写于 作者: C Cleber Rosa

Merge remote-tracking branch 'lmr/fix-interaction-multiple-plugins'

......@@ -148,7 +148,8 @@ class Job(object):
shutil.rmtree(self.logdir, ignore_errors=True)
def _make_test_loader(self):
for loader_class_candidate in self.args.__dict__.itervalues():
for key in self.args.__dict__.keys():
loader_class_candidate = getattr(self.args, key)
try:
if issubclass(loader_class_candidate, loader.TestLoader):
loader_plugin = loader_class_candidate(self)
......@@ -168,7 +169,8 @@ class Job(object):
test_result=self.result_proxy)
def _set_output_plugins(self):
for result_class_candidate in self.args.__dict__.itervalues():
for key in self.args.__dict__.keys():
result_class_candidate = getattr(self.args, key)
try:
if issubclass(result_class_candidate, result.TestResult):
result_plugin = result_class_candidate(self.view,
......
......@@ -66,7 +66,8 @@ class TestLoaderProxy(object):
self.loader_plugins.append(plugin)
def load_plugins(self, args):
for loader_class_candidate in args.__dict__.itervalues():
for key in args.__dict__.keys():
loader_class_candidate = getattr(args, key)
try:
if issubclass(loader_class_candidate, TestLoader):
loader_plugin = loader_class_candidate(args=args)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册