Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openeuler
avocado
提交
13cd8cf9
A
avocado
项目概览
openeuler
/
avocado
通知
0
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
A
avocado
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
未验证
提交
13cd8cf9
编写于
12月 14, 2018
作者:
C
Caio Carrara
浏览文件
操作
浏览文件
下载
差异文件
Merge remote-tracking branch 'clebergnu/tags_on_tests'
Signed-off-by:
N
Caio Carrara
<
ccarrara@redhat.com
>
上级
1022c47d
7f61762f
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
9 addition
and
5 deletion
+9
-5
avocado/core/loader.py
avocado/core/loader.py
+0
-4
avocado/core/test.py
avocado/core/test.py
+9
-1
未找到文件。
avocado/core/loader.py
浏览文件 @
13cd8cf9
...
...
@@ -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
:
...
...
avocado/core/test.py
浏览文件 @
13cd8cf9
...
...
@@ -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.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录