Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openeuler
avocado
提交
88e617d0
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,发现更多精彩内容 >>
提交
88e617d0
编写于
2月 19, 2015
作者:
L
Lucas Meneghel Rodrigues
浏览文件
操作
浏览文件
下载
差异文件
Merge pull request #429 from ruda/drop_features_gracefully
Drop features HTML Report and Multiplexer gracefully.
上级
0ab76864
291e4b4d
变更
6
显示空白变更内容
内联
并排
Showing
6 changed file
with
44 addition
and
27 deletion
+44
-27
avocado/core/tree.py
avocado/core/tree.py
+10
-5
avocado/job.py
avocado/job.py
+11
-14
avocado/multiplexer.py
avocado/multiplexer.py
+2
-0
avocado/plugins/htmlresult.py
avocado/plugins/htmlresult.py
+9
-1
avocado/plugins/multiplexer.py
avocado/plugins/multiplexer.py
+3
-0
avocado/plugins/runner.py
avocado/plugins/runner.py
+9
-7
未找到文件。
avocado/core/tree.py
浏览文件 @
88e617d0
...
...
@@ -37,12 +37,17 @@ import collections
import
os
import
re
import
yaml
try
:
from
yaml
import
CLoader
as
Loader
import
yaml
except
ImportError
:
MULTIPLEX_CAPABLE
=
False
else
:
MULTIPLEX_CAPABLE
=
True
if
MULTIPLEX_CAPABLE
:
try
:
from
yaml
import
CLoader
as
Loader
except
ImportError
:
from
yaml
import
Loader
...
...
avocado/job.py
浏览文件 @
88e617d0
...
...
@@ -40,14 +40,9 @@ from avocado.plugins import jsonresult
from
avocado.plugins
import
xunit
from
avocado.utils
import
archive
from
avocado.utils
import
path
from
avocado.plugins
import
htmlresult
try
:
from
avocado.plugins
import
htmlresult
HTML_REPORT_SUPPORT
=
True
except
ImportError
:
HTML_REPORT_SUPPORT
=
False
HTML_REPORT_SUPPORT
=
htmlresult
.
HTML_REPORT_CAPABLE
_NEW_ISSUE_LINK
=
'https://github.com/avocado-framework/avocado/issues/new'
...
...
@@ -87,6 +82,7 @@ class Job(object):
self
.
loglevel
=
mapping
[
raw_log_level
]
else
:
self
.
loglevel
=
logging
.
DEBUG
if
multiplexer
.
MULTIPLEX_CAPABLE
:
self
.
multiplex_files
=
args
.
multiplex_files
self
.
show_job_log
=
args
.
show_job_log
self
.
silent
=
args
.
silent
...
...
@@ -273,6 +269,7 @@ class Job(object):
params_list
=
self
.
test_loader
.
discover_urls
(
urls
)
if
multiplexer
.
MULTIPLEX_CAPABLE
:
if
multiplex_files
is
None
:
if
self
.
args
and
self
.
args
.
multiplex_files
is
not
None
:
multiplex_files
=
self
.
args
.
multiplex_files
...
...
avocado/multiplexer.py
浏览文件 @
88e617d0
...
...
@@ -23,6 +23,8 @@ import itertools
from
avocado.core
import
tree
MULTIPLEX_CAPABLE
=
tree
.
MULTIPLEX_CAPABLE
def
tree2pools
(
node
,
mux
=
True
):
"""
...
...
avocado/plugins/htmlresult.py
浏览文件 @
88e617d0
...
...
@@ -21,7 +21,12 @@ import sys
import
time
import
webbrowser
import
pystache
try
:
import
pystache
except
ImportError
:
HTML_REPORT_CAPABLE
=
False
else
:
HTML_REPORT_CAPABLE
=
True
from
avocado
import
runtime
from
avocado.core
import
exit_codes
...
...
@@ -248,6 +253,9 @@ class HTML(plugin.Plugin):
enabled
=
True
def
configure
(
self
,
parser
):
if
HTML_REPORT_CAPABLE
is
False
:
self
.
enabled
=
False
return
self
.
parser
=
parser
self
.
parser
.
runner
.
add_argument
(
'--html'
,
type
=
str
,
...
...
avocado/plugins/multiplexer.py
浏览文件 @
88e617d0
...
...
@@ -32,6 +32,9 @@ class Multiplexer(plugin.Plugin):
enabled
=
True
def
configure
(
self
,
parser
):
if
multiplexer
.
MULTIPLEX_CAPABLE
is
False
:
self
.
enabled
=
False
return
self
.
parser
=
parser
.
subcommands
.
add_parser
(
'multiplex'
,
help
=
'Generate a list of dictionaries with params from a multiplex file'
)
...
...
avocado/plugins/runner.py
浏览文件 @
88e617d0
...
...
@@ -23,6 +23,7 @@ from avocado.core import exit_codes
from
avocado.plugins
import
plugin
from
avocado.core
import
output
from
avocado
import
job
from
avocado
import
multiplexer
class
TestRunner
(
plugin
.
Plugin
):
...
...
@@ -107,6 +108,7 @@ class TestRunner(plugin.Plugin):
'present for the test. '
'Current: False (output check enabled)'
))
if
multiplexer
.
MULTIPLEX_CAPABLE
:
mux
=
self
.
parser
.
add_argument_group
(
'multiplex arguments'
)
mux
.
add_argument
(
'-m'
,
'--multiplex-files'
,
nargs
=
'*'
,
default
=
None
,
help
=
'Path(s) to a avocado multiplex (.yaml) file(s)'
)
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录