未验证 提交 13cd8cf9 编写于 作者: C Caio Carrara

Merge remote-tracking branch 'clebergnu/tags_on_tests'

Signed-off-by: NCaio Carrara <ccarrara@redhat.com>
......@@ -386,10 +386,6 @@ class TestLoaderProxy(object):
:return: an instance of :class:`avocado.core.test.Test`.
"""
test_class, test_parameters = test_factory
# discard tags, as they are *not* intended to be parameters
# for the test, but used previously during filtering
if 'tags' in test_parameters:
del(test_parameters['tags'])
if 'modulePath' in test_parameters:
test_path = test_parameters.pop('modulePath')
else:
......
......@@ -320,7 +320,7 @@ class Test(unittest.TestCase, TestData):
timeout = None
def __init__(self, methodName='test', name=None, params=None,
base_logdir=None, job=None, runner_queue=None):
base_logdir=None, job=None, runner_queue=None, tags=None):
"""
Initializes the test.
......@@ -349,6 +349,7 @@ class Test(unittest.TestCase, TestData):
self.__name = TestID(0, self.__class__.__name__)
self.__job = job
self.__tags = tags
if base_logdir is None:
base_logdir = data_dir.create_job_logs_dir()
......@@ -443,6 +444,13 @@ class Test(unittest.TestCase, TestData):
"""
return self.__job
@property
def tags(self):
"""
The tags associated with this test
"""
return self.__tags
@property
def log(self):
"""
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册