Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openeuler
avocado
提交
e81c2ae9
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,发现更多精彩内容 >>
未验证
提交
e81c2ae9
编写于
9月 06, 2016
作者:
C
Cleber Rosa
浏览文件
操作
浏览文件
下载
差异文件
Merge branch 'mux-plugin2-bugfixes'
上级
aa2d485c
de539add
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
17 addition
and
27 deletion
+17
-27
avocado/core/job.py
avocado/core/job.py
+0
-9
avocado/core/multiplexer.py
avocado/core/multiplexer.py
+2
-1
avocado/plugins/run.py
avocado/plugins/run.py
+15
-17
未找到文件。
avocado/core/job.py
浏览文件 @
e81c2ae9
...
...
@@ -520,15 +520,6 @@ class Job(object):
"""
Handled main job method. Runs a list of test URLs to its completion.
Note that the behavior is as follows:
* If urls is provided alone, just make a simple list with no specific
params (all tests use default params).
* If urls and multiplex_files are provided, multiplex provides params
and variants to all tests it can.
* If multiplex_files are provided alone, just use the matrix produced
by the file
The test runner figures out which tests need to be run on an empty urls
list by assuming the first component of the shortname is the test url.
...
...
avocado/core/multiplexer.py
浏览文件 @
e81c2ae9
...
...
@@ -389,11 +389,12 @@ class Mux(object):
filter_only
=
getattr
(
args
,
'filter_only'
,
None
)
filter_out
=
getattr
(
args
,
'filter_out'
,
None
)
if
mux_files
:
mux_tree
=
yaml2tree
(
mux_files
,
filter_only
,
filter_out
)
mux_tree
=
yaml2tree
(
mux_files
)
else
:
# no variants
mux_tree
=
tree
.
TreeNode
()
if
getattr
(
args
,
'default_avocado_params'
,
None
):
mux_tree
.
merge
(
args
.
default_avocado_params
)
mux_tree
=
tree
.
apply_filters
(
mux_tree
,
filter_only
,
filter_out
)
self
.
variants
=
MuxTree
(
mux_tree
)
self
.
_mux_path
=
getattr
(
args
,
'mux_path'
,
None
)
if
self
.
_mux_path
is
None
:
...
...
avocado/plugins/run.py
浏览文件 @
e81c2ae9
...
...
@@ -132,25 +132,23 @@ class Run(CLICmd):
loader
.
add_loader_options
(
parser
)
mux
=
parser
.
add_argument_group
(
'test parameters'
)
if
multiplexer
.
MULTIPLEX_CAPABLE
:
mux
=
parser
.
add_argument_group
(
'multiplexer use on test execution'
)
mux
.
add_argument
(
'-m'
,
'--multiplex'
,
nargs
=
'*'
,
dest
=
'multiplex_files'
,
mux
.
add_argument
(
'-m'
,
'--multiplex'
,
nargs
=
'*'
,
dest
=
'multiplex_files'
,
default
=
None
,
metavar
=
'FILE'
,
help
=
'Location of one or more Avocado multiplex (.yaml) '
'FILE(s) (order dependent)'
)
mux
.
add_argument
(
'--multiplex-files'
,
nargs
=
'*'
,
default
=
None
,
metavar
=
'FILE'
,
help
=
'DEPRECATED: please use --multiplex instead'
)
mux
.
add_argument
(
'--filter-only'
,
nargs
=
'*'
,
default
=
[],
help
=
'Filter only path(s) from multiplexing'
)
mux
.
add_argument
(
'--filter-out'
,
nargs
=
'*'
,
default
=
[],
help
=
'Filter out path(s) from multiplexing'
)
mux
.
add_argument
(
'--mux-path'
,
nargs
=
'*'
,
default
=
None
,
help
=
"List of paths used to determine path "
"priority when querying for parameters"
)
mux
.
add_argument
(
'--mux-inject'
,
default
=
[],
nargs
=
'*'
,
help
=
"Inject [path:]key:node values into the "
"final multiplex tree."
)
help
=
'Location of one or more Avocado multiplex '
'(.yaml) FILE(s) (order dependent)'
)
mux
.
add_argument
(
'--filter-only'
,
nargs
=
'*'
,
default
=
[],
help
=
'Filter only path(s) from multiplexing'
)
mux
.
add_argument
(
'--filter-out'
,
nargs
=
'*'
,
default
=
[],
help
=
'Filter out path(s) from multiplexing'
)
mux
.
add_argument
(
'--mux-path'
,
nargs
=
'*'
,
default
=
None
,
help
=
"List of paths used to determine path "
"priority when querying for parameters"
)
mux
.
add_argument
(
'--mux-inject'
,
default
=
[],
nargs
=
'*'
,
help
=
"Inject [path:]key:node values into the "
"final multiplex tree."
)
def
_activate
(
self
,
args
):
# Extend default multiplex tree of --mux_inject values
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录