Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openeuler
avocado
提交
1262614f
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,发现更多精彩内容 >>
未验证
提交
1262614f
编写于
8月 11, 2017
作者:
A
Amador Pahim
浏览文件
操作
浏览文件
下载
差异文件
Merge branch 'ldoktor-fix-variants-mux-path'
Signed-off-by:
N
Amador Pahim
<
apahim@redhat.com
>
上级
9a94d7a4
d2f70ef3
变更
3
显示空白变更内容
内联
并排
Showing
3 changed file
with
19 addition
and
2 deletion
+19
-2
avocado/core/varianter.py
avocado/core/varianter.py
+1
-1
selftests/functional/test_basic.py
selftests/functional/test_basic.py
+5
-0
selftests/functional/test_multiplex.py
selftests/functional/test_multiplex.py
+13
-1
未找到文件。
avocado/core/varianter.py
浏览文件 @
1262614f
...
@@ -631,4 +631,4 @@ class Varianter(object):
...
@@ -631,4 +631,4 @@ class Varianter(object):
else
:
# No variants, use template
else
:
# No variants, use template
yield
{
"variant"
:
self
.
_default_params
.
get_leaves
(),
yield
{
"variant"
:
self
.
_default_params
.
get_leaves
(),
"variant_id"
:
None
,
"variant_id"
:
None
,
"mux_path"
:
"/run"
}
"mux_path"
:
[
"/run/*"
]
}
selftests/functional/test_basic.py
浏览文件 @
1262614f
...
@@ -189,6 +189,11 @@ class RunnerOperationTest(unittest.TestCase):
...
@@ -189,6 +189,11 @@ class RunnerOperationTest(unittest.TestCase):
cmd_line
=
(
'%s run --sysinfo=off --job-results-dir %s '
cmd_line
=
(
'%s run --sysinfo=off --job-results-dir %s '
'passtest.py passtest.py'
%
(
AVOCADO
,
self
.
tmpdir
))
'passtest.py passtest.py'
%
(
AVOCADO
,
self
.
tmpdir
))
process
.
run
(
cmd_line
)
process
.
run
(
cmd_line
)
# Also check whether jobdata contains correct mux_path
variants
=
open
(
os
.
path
.
join
(
self
.
tmpdir
,
"latest"
,
"jobdata"
,
"variants.json"
)).
read
()
self
.
assertIn
(
'["/run/*"]'
,
variants
,
"mux_path stored in jobdata "
"does not contains [
\"
/run/*
\"
]
\n
%s"
%
variants
)
def
test_runner_failfast
(
self
):
def
test_runner_failfast
(
self
):
os
.
chdir
(
basedir
)
os
.
chdir
(
basedir
)
...
...
selftests/functional/test_multiplex.py
浏览文件 @
1262614f
...
@@ -78,13 +78,25 @@ class MultiplexTests(unittest.TestCase):
...
@@ -78,13 +78,25 @@ class MultiplexTests(unittest.TestCase):
%
(
AVOCADO
,
self
.
tmpdir
))
%
(
AVOCADO
,
self
.
tmpdir
))
expected_rc
=
exit_codes
.
AVOCADO_ALL_OK
expected_rc
=
exit_codes
.
AVOCADO_ALL_OK
self
.
run_and_check
(
cmd_line
,
expected_rc
,
(
4
,
0
))
self
.
run_and_check
(
cmd_line
,
expected_rc
,
(
4
,
0
))
# Also check whether jobdata contains correct mux_path
variants
=
open
(
os
.
path
.
join
(
self
.
tmpdir
,
"latest"
,
"jobdata"
,
"variants.json"
)).
read
()
self
.
assertIn
(
'["/run/*"]'
,
variants
,
"mux_path stored in jobdata "
"does not contains [
\"
/run/*
\"
]
\n
%s"
%
variants
)
def
test_run_mplex_doublepass
(
self
):
def
test_run_mplex_doublepass
(
self
):
cmd_line
=
(
'%s run --job-results-dir %s --sysinfo=off '
cmd_line
=
(
'%s run --job-results-dir %s --sysinfo=off '
'passtest.py passtest.py -m '
'passtest.py passtest.py -m '
'examples/tests/sleeptest.py.data/sleeptest.yaml'
'examples/tests/sleeptest.py.data/sleeptest.yaml '
'--mux-path /foo/
\\
* /bar/
\\
* /baz/
\\
*'
%
(
AVOCADO
,
self
.
tmpdir
))
%
(
AVOCADO
,
self
.
tmpdir
))
self
.
run_and_check
(
cmd_line
,
exit_codes
.
AVOCADO_ALL_OK
,
(
8
,
0
))
self
.
run_and_check
(
cmd_line
,
exit_codes
.
AVOCADO_ALL_OK
,
(
8
,
0
))
# Also check whether jobdata contains correct mux_path
variants
=
open
(
os
.
path
.
join
(
self
.
tmpdir
,
"latest"
,
"jobdata"
,
"variants.json"
)).
read
()
exp
=
'["/foo/*", "/bar/*", "/baz/*"]'
self
.
assertIn
(
exp
,
variants
,
"mux_path stored in jobdata "
"does not contains %s
\n
%s"
%
(
exp
,
variants
))
def
test_run_mplex_failtest
(
self
):
def
test_run_mplex_failtest
(
self
):
cmd_line
=
(
'%s run --job-results-dir %s --sysinfo=off '
cmd_line
=
(
'%s run --job-results-dir %s --sysinfo=off '
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录