Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openeuler
avocado
提交
5d37cfc3
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,发现更多精彩内容 >>
提交
5d37cfc3
编写于
9月 17, 2015
作者:
L
Lucas Meneghel Rodrigues
浏览文件
操作
浏览文件
下载
差异文件
Merge pull request #797 from lmr/lmr-test-spec-files-update
Spec files Update
上级
960e29dc
7fdadfcb
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
20 addition
and
5 deletion
+20
-5
avocado.spec
avocado.spec
+6
-3
selftests/functional/test_interrupt.py
selftests/functional/test_interrupt.py
+14
-2
未找到文件。
avocado.spec
浏览文件 @
5d37cfc3
Summary: Avocado Test Framework
Name: avocado
Version: 0.28.0
Release:
1
%{?dist}
Release:
2
%{?dist}
License: GPLv2
Group: Development/Tools
URL: http://avocado-framework.github.io/
Source: avocado-%{version}.tar.gz
BuildArch: noarch
Requires: python, python-requests, fabric, pyliblzma, libvirt-python, pystache, gdb, gdb-gdbserver
BuildRequires: python2-devel, python-docutils, python-mock
BuildRequires: python2-devel, python-docutils, python-mock
, python-psutil, python-sphinx, python-requests, aexpect, pystache, yum
%if 0%{?el6}
Requires: PyYAML
...
...
@@ -46,7 +46,7 @@ these days a framework) to perform automated testing.
# on EPEL7.
%if !0%{?rhel}
%check
selftests/run
selftests/all/unit
selftests/run
%endif
%files
...
...
@@ -104,6 +104,9 @@ examples of how to write tests on your own.
%{_datadir}/avocado/wrappers
%changelog
* Wed Sep 16 2015 Lucas Meneghel Rodrigues <lmr@redhat.com> - 0.28.0-2
- Add pystache, aexpect, psutil, sphinx and yum/dnf dependencies for functional/unittests
* Wed Sep 16 2015 Lucas Meneghel Rodrigues <lmr@redhat.com> - 0.28.0-1
- New upstream release 0.28.0
...
...
selftests/functional/test_interrupt.py
浏览文件 @
5d37cfc3
...
...
@@ -85,10 +85,12 @@ class InterruptTest(unittest.TestCase):
def
wait_until_no_badtest
():
bad_test_processes
=
[]
old_psutil
=
False
try
:
process_list
=
psutil
.
pids
()
except
AttributeError
:
process_list
=
psutil
.
get_pid_list
()
old_psutil
=
True
for
p
in
process_list
:
p_obj
=
None
...
...
@@ -97,7 +99,11 @@ class InterruptTest(unittest.TestCase):
except
psutil
.
NoSuchProcess
:
pass
if
p_obj
is
not
None
:
if
bad_test
.
path
in
" "
.
join
(
psutil
.
Process
(
p
).
cmdline
()):
if
old_psutil
:
cmdline_list
=
psutil
.
Process
(
p
).
cmdline
else
:
cmdline_list
=
psutil
.
Process
(
p
).
cmdline
()
if
bad_test
.
path
in
" "
.
join
(
cmdline_list
):
bad_test_processes
.
append
(
p_obj
)
return
len
(
bad_test_processes
)
==
0
...
...
@@ -132,10 +138,12 @@ class InterruptTest(unittest.TestCase):
def
wait_until_no_goodtest
():
good_test_processes
=
[]
old_psutil
=
False
try
:
process_list
=
psutil
.
pids
()
except
AttributeError
:
process_list
=
psutil
.
get_pid_list
()
old_psutil
=
True
for
p
in
process_list
:
p_obj
=
None
...
...
@@ -144,7 +152,11 @@ class InterruptTest(unittest.TestCase):
except
psutil
.
NoSuchProcess
:
pass
if
p_obj
is
not
None
:
if
good_test
.
path
in
" "
.
join
(
psutil
.
Process
(
p
).
cmdline
()):
if
old_psutil
:
cmdline_list
=
psutil
.
Process
(
p
).
cmdline
else
:
cmdline_list
=
psutil
.
Process
(
p
).
cmdline
()
if
good_test
.
path
in
" "
.
join
(
cmdline_list
):
good_test_processes
.
append
(
p_obj
)
return
len
(
good_test_processes
)
==
0
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录