Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openeuler
avocado
提交
f12f2774
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,发现更多精彩内容 >>
未验证
提交
f12f2774
编写于
3月 07, 2017
作者:
A
Amador Pahim
浏览文件
操作
浏览文件
下载
差异文件
Merge branch 'clebergnu-varianter_interface_rename_v2'
Signed-off-by:
N
Amador Pahim
<
apahim@redhat.com
>
上级
3c2b7349
272eaa02
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
12 addition
and
12 deletion
+12
-12
avocado/core/mux.py
avocado/core/mux.py
+5
-5
avocado/core/plugin_interfaces.py
avocado/core/plugin_interfaces.py
+1
-1
avocado/plugins/yaml_to_mux.py
avocado/plugins/yaml_to_mux.py
+2
-2
docs/source/TestParameters.rst
docs/source/TestParameters.rst
+4
-4
未找到文件。
avocado/core/mux.py
浏览文件 @
f12f2774
...
...
@@ -90,7 +90,7 @@ class MuxPlugin(object):
"""
Base implementation of Mux-like Varianter plugin. It should be used as
a base class in conjunction with
:class:`avocado.core.plugin_interfaces.Varianter
Plugin
`.
:class:`avocado.core.plugin_interfaces.Varianter`.
"""
root
=
None
variants
=
None
...
...
@@ -111,7 +111,7 @@ class MuxPlugin(object):
def
__iter__
(
self
):
"""
See :meth:`avocado.core.plugin_interfaces.Varianter
Plugin
.__iter__`
See :meth:`avocado.core.plugin_interfaces.Varianter.__iter__`
"""
if
self
.
root
is
None
:
return
...
...
@@ -123,7 +123,7 @@ class MuxPlugin(object):
def
update_defaults
(
self
,
defaults
):
"""
See
:meth:`avocado.core.plugin_interfaces.Varianter
Plugin
.update_defaults`
:meth:`avocado.core.plugin_interfaces.Varianter.update_defaults`
"""
if
self
.
root
is
None
:
return
...
...
@@ -136,7 +136,7 @@ class MuxPlugin(object):
def
to_str
(
self
,
summary
,
variants
,
**
kwargs
):
"""
See :meth:`avocado.core.plugin_interfaces.Varianter
Plugin
.to_str`
See :meth:`avocado.core.plugin_interfaces.Varianter.to_str`
"""
if
not
self
.
variants
:
return
""
...
...
@@ -183,7 +183,7 @@ class MuxPlugin(object):
def
__len__
(
self
):
"""
See :meth:`avocado.core.plugin_interfaces.Varianter
Plugin
.__len__`
See :meth:`avocado.core.plugin_interfaces.Varianter.__len__`
"""
if
self
.
root
is
None
:
return
0
...
...
avocado/core/plugin_interfaces.py
浏览文件 @
f12f2774
...
...
@@ -203,7 +203,7 @@ class ResultEvents(JobPreTests, JobPostTests):
"""
class
Varianter
Plugin
(
Plugin
):
class
Varianter
(
Plugin
):
"""
Base plugin interface for producing test variants usually from cmd line
...
...
avocado/plugins/yaml_to_mux.py
浏览文件 @
f12f2774
...
...
@@ -20,7 +20,7 @@ import re
import
sys
from
avocado.core
import
tree
,
exit_codes
,
mux
from
avocado.core.plugin_interfaces
import
CLI
,
Varianter
Plugin
from
avocado.core.plugin_interfaces
import
CLI
,
Varianter
try
:
...
...
@@ -288,7 +288,7 @@ class YamlToMuxCLI(CLI):
"""
class
YamlToMux
(
mux
.
MuxPlugin
,
Varianter
Plugin
):
class
YamlToMux
(
mux
.
MuxPlugin
,
Varianter
):
"""
Processes the mux options into varianter plugin
...
...
docs/source/TestParameters.rst
浏览文件 @
f12f2774
...
...
@@ -146,7 +146,7 @@ More practical overview of mux path is in `yaml_to_mux plugin`_ in
Variant
~~~~~~~
Variant is a set of params produced by `Varianter
Plugin
`_s and passed to
Variant is a set of params produced by `Varianter`_s and passed to
the test by the test runner as ``params`` argument. The simplest variant
is ``None``, which still produces `AvocadoParams`_ with only the
`Test's default params`_. If dict is used as a `Variant`_, it (safely)
...
...
@@ -245,7 +245,7 @@ Where:
Varianter plugins
~~~~~~~~~~~~~~~~~
:class:`avocado.core.plugin_interfaces.Varianter
Plugin
`
:class:`avocado.core.plugin_interfaces.Varianter`
A plugin interface that can be used to build custom plugins which
are used by `Varianter`_ to get test variants. For inspiration see
...
...
@@ -413,8 +413,8 @@ MuxPlugin
:class:`avocado.core.mux.MuxPlugin`
Defines the full interface required by
:class:`avocado.core.plugin_interfaces.Varianter
Plugin
`. The plugin writer
should inherit from this ``MuxPlugin``, then from the ``Varianter
Plugin
``
:class:`avocado.core.plugin_interfaces.Varianter`. The plugin writer
should inherit from this ``MuxPlugin``, then from the ``Varianter``
and call the::
self.initialize_mux(root, mux_path, debug)
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录