Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openeuler
avocado
提交
966970d5
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,发现更多精彩内容 >>
未验证
提交
966970d5
编写于
12月 11, 2018
作者:
C
Caio Carrara
浏览文件
操作
浏览文件
下载
差异文件
Merge remote-tracking branch 'clebergnu/rpm_jinja'
Signed-off-by:
N
Caio Carrara
<
ccarrara@redhat.com
>
上级
5e98ae7d
13ab5376
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
15 addition
and
7 deletion
+15
-7
optional_plugins/html/avocado_result_html/__init__.py
optional_plugins/html/avocado_result_html/__init__.py
+1
-1
python-avocado.spec
python-avocado.spec
+14
-6
未找到文件。
optional_plugins/html/avocado_result_html/__init__.py
浏览文件 @
966970d5
...
...
@@ -202,7 +202,7 @@ class HTMLResult(Result):
def
_render
(
self
,
result
,
output_path
):
env
=
jinja
.
Environment
(
loader
=
jinja
.
PackageLoader
(
'avocado_result_html'
),
autoescape
=
jinja
.
select_autoescape
([
'html'
,
'xml'
])
,
autoescape
=
True
,
)
template
=
env
.
get_template
(
'results.html'
)
report_contents
=
template
.
render
({
'data'
:
ReportModel
(
result
,
output_path
)})
...
...
python-avocado.spec
浏览文件 @
966970d5
...
...
@@ -47,7 +47,7 @@
Summary
:
Framework
with
tools
and
libraries
for
Automated
Testing
Name
:
python
-%{
srcname
}
Version
:
66.0
Release
:
1
%{?
gitrel
}%{?
dist
}
Release
:
2
%{?
gitrel
}%{?
dist
}
License
:
GPLv2
Group
:
Development
/
Tools
URL
:
http
://
avocado
-
framework
.
github
.
io
/
...
...
@@ -69,7 +69,7 @@ BuildRequires: python3-fabric3
%
endif
%
if
0
%{?
rhel
}
==
7
BuildRequires
:
py
stache
BuildRequires
:
py
thon
-
jinja2
BuildRequires
:
python
-
lxml
BuildRequires
:
python
-
setuptools
BuildRequires
:
python
-
stevedore
...
...
@@ -85,7 +85,7 @@ BuildRequires: python2-six
BuildRequires
:
python2
-
sphinx
BuildRequires
:
yum
%
else
BuildRequires
:
py
stache
BuildRequires
:
py
thon2
-
jinja2
BuildRequires
:
python2
-
aexpect
BuildRequires
:
python2
-
devel
BuildRequires
:
python2
-
docutils
...
...
@@ -107,7 +107,7 @@ BuildRequires: python2-pycdlib
%
endif
%
if
%{
with_python3
}
BuildRequires
:
python3
-
pystache
BuildRequires
:
python3
-
jinja2
BuildRequires
:
python3
-
aexpect
BuildRequires
:
python3
-
devel
BuildRequires
:
python3
-
docutils
...
...
@@ -595,7 +595,12 @@ Common files (such as configuration) for the Avocado Testing Framework.
%
package
-
n
python2
-%{
srcname
}-
plugins
-
output
-
html
Summary
:
Avocado
HTML
report
plugin
Requires
:
python2
-%{
srcname
}
==
%{
version
},
pystache
Requires
:
python2
-%{
srcname
}
==
%{
version
},
%
if
0
%{?
rhel
}
==
7
Requires
:
python
-
jinja2
%
else
Requires
:
python2
-
jinja2
%
endif
%
description
-
n
python2
-%{
srcname
}-
plugins
-
output
-
html
Adds
to
avocado
the
ability
to
generate
an
HTML
report
at
every
job
results
...
...
@@ -609,7 +614,7 @@ arbitrary filesystem location.
%
if
%{
with_python3
}
%
package
-
n
python3
-%{
srcname
}-
plugins
-
output
-
html
Summary
:
Avocado
HTML
report
plugin
Requires
:
python3
-%{
srcname
}
==
%{
version
},
python3
-
pystache
Requires
:
python3
-%{
srcname
}
==
%{
version
},
python3
-
jinja2
%
description
-
n
python3
-%{
srcname
}-
plugins
-
output
-
html
Adds
to
avocado
the
ability
to
generate
an
HTML
report
at
every
job
results
...
...
@@ -973,6 +978,9 @@ Again Shell code (and possibly other similar shells).
%{
_libexecdir
}/
avocado
*
%
changelog
*
Mon
Dec
10
2018
Cleber
Rosa
<
cleber
@
redhat
.
com
>
-
66.0
-
2
-
Replaced
pystache
requirement
for
jinja2
*
Wed
Dec
5
2018
Cleber
Rosa
<
cleber
@
redhat
.
com
>
-
66.0
-
1
-
Added
libcdio
,
genisoimage
and
psmisc
as
build
deps
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录