Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openeuler
avocado
提交
bc597920
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,发现更多精彩内容 >>
提交
bc597920
编写于
3月 17, 2015
作者:
C
Cleber Rosa
浏览文件
操作
浏览文件
下载
差异文件
Merge remote-tracking branch 'lmr/fix-issue-486-2ndtry'
上级
5dca35fe
1d26ae02
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
16 addition
and
5 deletion
+16
-5
avocado/plugins/plugin_list.py
avocado/plugins/plugin_list.py
+6
-1
avocado/plugins/test_list.py
avocado/plugins/test_list.py
+6
-1
avocado/remote/runner.py
avocado/remote/runner.py
+3
-2
selftests/all/unit/avocado/remote_unittest.py
selftests/all/unit/avocado/remote_unittest.py
+1
-1
未找到文件。
avocado/plugins/plugin_list.py
浏览文件 @
bc597920
...
...
@@ -30,10 +30,15 @@ class PluginList(plugin.Plugin):
self
.
parser
=
parser
.
subcommands
.
add_parser
(
'plugins'
,
help
=
'List all plugins loaded'
)
self
.
parser
.
add_argument
(
'--disable-paginator'
,
dest
=
'disable_paginator'
,
action
=
'store_true'
,
help
=
'Disable paginator usage'
)
super
(
PluginList
,
self
).
configure
(
self
.
parser
)
def
run
(
self
,
args
):
view
=
output
.
View
(
app_args
=
args
,
use_paginator
=
True
)
view
=
output
.
View
(
app_args
=
args
,
use_paginator
=
not
args
.
disable_paginator
)
pm
=
get_plugin_manager
()
view
.
notify
(
event
=
'message'
,
msg
=
'Plugins loaded:'
)
blength
=
0
...
...
avocado/plugins/test_list.py
浏览文件 @
bc597920
...
...
@@ -54,6 +54,10 @@ class TestList(plugin.Plugin):
help
=
'Whether to show extra information '
'(headers and summary). Current: %('
'default)s'
)
self
.
parser
.
add_argument
(
'--disable-paginator'
,
dest
=
'disable_paginator'
,
action
=
'store_true'
,
help
=
'Disable paginator usage'
)
super
(
TestList
,
self
).
configure
(
self
.
parser
)
def
_run
(
self
,
args
):
...
...
@@ -62,7 +66,8 @@ class TestList(plugin.Plugin):
:param args: Command line args received from the list subparser.
"""
self
.
view
=
output
.
View
(
app_args
=
args
,
use_paginator
=
True
)
self
.
view
=
output
.
View
(
app_args
=
args
,
use_paginator
=
not
args
.
disable_paginator
)
paths
=
[
data_dir
.
get_test_dir
()]
if
args
.
paths
:
...
...
avocado/remote/runner.py
浏览文件 @
bc597920
...
...
@@ -69,8 +69,9 @@ class RemoteTestRunner(TestRunner):
'avocado installed'
)
urls_str
=
" "
.
join
(
urls
)
avocado_check_urls_cmd
=
'cd %s; avocado list %s'
%
(
self
.
remote_test_dir
,
urls_str
)
avocado_check_urls_cmd
=
(
'cd %s; avocado list %s '
'--disable-paginator'
%
(
self
.
remote_test_dir
,
urls_str
))
check_urls_result
=
self
.
result
.
remote
.
run
(
avocado_check_urls_cmd
,
ignore_status
=
True
,
timeout
=
None
)
...
...
selftests/all/unit/avocado/remote_unittest.py
浏览文件 @
bc597920
...
...
@@ -41,7 +41,7 @@ class RemoteTestRunnerTest(unittest.TestCase):
.
with_args
(
args
,
ignore_status
=
True
,
timeout
=
None
)
.
once
().
and_return
(
version_result
))
args
=
'cd ~/avocado/tests; avocado list sleeptest'
args
=
'cd ~/avocado/tests; avocado list sleeptest
--disable-paginator
'
urls_result
=
flexmock
(
exit_status
=
0
)
(
Remote
.
should_receive
(
'run'
)
.
with_args
(
args
,
timeout
=
None
,
ignore_status
=
True
)
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录