提交 3d93f35a 编写于 作者: L Lucas Meneghel Rodrigues

Merge pull request #564 from lmr/multiplexer-tweaks

Multiplexer tweaks
......@@ -140,7 +140,7 @@ class AvocadoParams(object):
self._log = logging.getLogger("avocado.test").debug
self._cache = {} # TODO: Implement something more efficient
# TODO: Get rid of this and prepare something better
self._default_parmas = default_params
self._default_params = default_params
def __eq__(self, other):
if set(self.__dict__.iterkeys()) != set(other.__dict__.iterkeys()):
......@@ -179,8 +179,7 @@ class AvocadoParams(object):
def log(self, key, path, default, value):
""" Predefined format for displaying params query """
self._log("PARAMS: %-20s | %-20s | %-10s => %r"
% (key, path, default, value))
self._log("PARAMS (key=%s, path=%s, default=%s) => %r", key, path, default, value)
def _get_matching_leaves(self, path, leaves):
"""
......@@ -329,7 +328,7 @@ class AvocadoParams(object):
return self._abs_path.get_or_die(path, key)
except NoMatchError:
pass
return self._default_parmas.get(key, default)
return self._default_params.get(key, default)
def objects(self, key, path=None):
"""
......
......@@ -259,7 +259,7 @@ class TestRunner(object):
for test_factory in mux.itertests(test_template):
if deadline is not None and time.time() > deadline:
test_parameters = test_factory[1]
if test_parameters.has_key('methodName'):
if 'methodName' in test_parameters:
del test_parameters['methodName']
test_factory = (test.TimeOutSkipTest, test_parameters)
self.run_test(test_factory, queue, failures)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册