Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openeuler
avocado
提交
3403508a
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,体验更适合开发者的 AI 搜索 >>
未验证
提交
3403508a
编写于
8月 03, 2020
作者:
C
Cleber Rosa
浏览文件
操作
浏览文件
下载
差异文件
Merge remote-tracking branch 'clebergnu/docs_drop_update_params'
Signed-off-by:
N
Cleber Rosa
<
crosa@redhat.com
>
上级
cc5d7053
dcf93a74
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
0 addition
and
31 deletion
+0
-31
docs/source/guides/writer/chapters/parameters.rst
docs/source/guides/writer/chapters/parameters.rst
+0
-31
未找到文件。
docs/source/guides/writer/chapters/parameters.rst
浏览文件 @
3403508a
...
...
@@ -225,16 +225,12 @@ loaded from the replayed job. The workflow with ``ignore_new_data`` could
look like this::
avocado run --replay latest -m example.yaml
|
+ $PLUGIN -> args.default_avocado_params.add_default_param // could be used to insert default values
|
+ replay.run -> Varianter.is_parsed
|
+ replay.run // Varianter object is replaced with the replay job's one
| // Varianter.ignore_new_data is set
|
+ $PLUGIN -> args.default_avocado_params.add_default_param // is ignored as new data are not accepted
|
+ job.run_tests -> Varianter.is_parsed
|
+ job._log_variants -> Varianter.to_str
...
...
@@ -249,32 +245,6 @@ of them reports variants it yields them instead of the default variant.
Default params
~~~~~~~~~~~~~~
The `Default params`_ is a mechanism to specify default values in
`Varianter`_ or `Varianter plugins`_. Their purpose is usually to
define values dependent on the system which should not affect the
test's results. One example is a qemu binary location which might
differ from one host to another host, but in the end they should
result in qemu being executable in test. For this reason the `Default
params`_ do not affects the test's variant-id (at least not in the
official `Varianter plugins`_).
These params can be set from plugin/core by getting ``default_avocado_params``
from ``args`` and using::
default_avocado_params.add_default_parma(self, name, key, value, path=None)
Where:
* name - name of the plugin which injects data (not yet used for anything,
but we plan to allow white/black listing)
* key - the parameter's name
* value - the parameter's value
* path - the location of this parameter. When the path does not exists yet,
it's created out of `TreeNode`_.
Test parameters
~~~~~~~~~~~~~~~
...
...
@@ -314,4 +284,3 @@ are used by `Varianter`_ to get test variants. For inspiration see
:class:`avocado_varianter_yaml_to_mux.YamlToMux` which is an
optional varianter plugin. Details about this plugin can be
found here :ref:`yaml-to-mux-plugin`.
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录