Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openeuler
avocado
提交
24d119f2
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,发现更多精彩内容 >>
提交
24d119f2
编写于
10月 06, 2014
作者:
L
Lucas Meneghel Rodrigues
浏览文件
操作
浏览文件
下载
差异文件
Merge pull request #231 from lmr/sprint-14-pendencies
Sprint 14 pendencies
上级
e582c353
bbe281ae
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
27 addition
and
5 deletion
+27
-5
avocado/job.py
avocado/job.py
+2
-1
avocado/plugins/multiplexer.py
avocado/plugins/multiplexer.py
+2
-2
man/avocado.rst
man/avocado.rst
+23
-2
未找到文件。
avocado/job.py
浏览文件 @
24d119f2
...
...
@@ -446,14 +446,15 @@ class Job(object):
except
SyntaxError
:
variants
=
None
if
variants
:
tag
=
1
for
variant
in
variants
:
env
=
{}
for
t
in
variant
:
env
.
update
(
dict
(
t
.
environment
))
tag
=
"."
.
join
([
str
(
var
.
name
)
for
var
in
variant
])
env
.
update
({
'tag'
:
tag
})
env
.
update
({
'id'
:
url
})
params_list
.
append
(
env
)
tag
+=
1
else
:
params_list
.
append
({
'id'
:
url
})
...
...
avocado/plugins/multiplexer.py
浏览文件 @
24d119f2
...
...
@@ -80,12 +80,12 @@ class Multiplexer(plugin.Plugin):
view
.
notify
(
event
=
'message'
,
msg
=
'Variants generated:'
)
for
(
index
,
tpl
)
in
enumerate
(
variants
):
paths
=
', '
.
join
([
x
.
path
for
x
in
tpl
])
view
.
notify
(
event
=
'm
essage
'
,
msg
=
'Variant %s: %s'
%
(
index
+
1
,
paths
))
view
.
notify
(
event
=
'm
inor
'
,
msg
=
'Variant %s: %s'
%
(
index
+
1
,
paths
))
if
args
.
contents
:
env
=
collections
.
OrderedDict
()
for
node
in
tpl
:
env
.
update
(
node
.
environment
)
for
k
in
sorted
(
env
.
keys
()):
view
.
notify
(
event
=
'm
essage
'
,
msg
=
' %s: %s'
%
(
k
,
env
[
k
]))
view
.
notify
(
event
=
'm
inor
'
,
msg
=
' %s: %s'
%
(
k
,
env
[
k
]))
sys
.
exit
(
error_codes
.
numeric_status
[
'AVOCADO_ALL_OK'
])
man/avocado.rst
浏览文件 @
24d119f2
...
...
@@ -26,9 +26,7 @@ on them being loaded::
-h, --help show this help message and exit
-v, --version show program's version number and exit
-V, --verbose print extra debug messages
--logdir LOGDIR Alternate logs directory
--loglevel LOG_LEVEL Debug Level
--plugins PLUGINS_DIR Load extra plugins from directory
Real use of avocado depends on running avocado subcommands. This a typical list
...
...
@@ -107,9 +105,32 @@ In order to do that, you can use --show-job-log to the avocado test runner::
Not logging /proc/slabinfo (lack of permissions)
Let's say you are debugging a test particularly large, with lots of debug
output and you want to reduce this output to only messages with level 'INFO'
and higher. You can use the option --job-log-level info to reduce the output.
Running the same example with this option::
$ scripts/avocado run sleeptest --show-job-log --job-log-level info
START sleeptest.py
PASS sleeptest.py
The levels you can choose are the levels available in the python logging system
`https://docs.python.org/2/library/logging.html#logging-levels`, translated
to lowercase strings, so 'notset', 'debug', 'info', 'warning', 'error',
'critical', in order of severity.
As you can see, the UI output is suppressed and only the job log goes to
stdout, making this a useful feature for test development/debugging.
SILENCING RUNNER STDOUT
=======================
You may specify --silent, that means avocado will turn off all runner
stdout. Even if you specify things like --show-job-log in the CLI, --silent
will have precedence and you will not get application stdout. Note that --silent
does not affect on disk job logs, those continue to be generated normally.
LISTING TESTS
=============
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录