Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openeuler
avocado
提交
e5d5064a
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,发现更多精彩内容 >>
未验证
提交
e5d5064a
编写于
4月 18, 2018
作者:
A
Amador Pahim
浏览文件
操作
浏览文件
下载
差异文件
Merge branch 'clebergnu-travis_resource_sensitive_tests'
Signed-off-by:
N
Amador Pahim
<
apahim@redhat.com
>
上级
1801e6c6
822095d5
变更
3
显示空白变更内容
内联
并排
Showing
3 changed file
with
8 addition
and
5 deletion
+8
-5
selftests/functional/test_basic.py
selftests/functional/test_basic.py
+4
-1
selftests/functional/test_interrupt.py
selftests/functional/test_interrupt.py
+2
-2
selftests/functional/test_loader.py
selftests/functional/test_loader.py
+2
-2
未找到文件。
selftests/functional/test_basic.py
浏览文件 @
e5d5064a
...
...
@@ -481,6 +481,9 @@ class RunnerOperationTest(unittest.TestCase):
int
(
r
[
'job_id'
],
16
)
# it's an hex number
self
.
assertEqual
(
len
(
r
[
'job_id'
]),
40
)
@
unittest
.
skipIf
(
int
(
os
.
environ
.
get
(
"AVOCADO_CHECK_LEVEL"
,
0
))
<
2
,
"Skipping test that take a long time to run, are "
"resource intensive or time sensitve"
)
def
test_early_latest_result
(
self
):
"""
Tests that the `latest` link to the latest job results is created early
...
...
@@ -795,7 +798,7 @@ class RunnerSimpleTest(unittest.TestCase):
(
expected_rc
,
result
))
@
unittest
.
skipIf
(
not
SLEEP_BINARY
,
'sleep binary not available'
)
@
unittest
.
skipIf
(
int
(
os
.
environ
.
get
(
"AVOCADO_CHECK_LEVEL"
,
0
))
<
1
,
@
unittest
.
skipIf
(
int
(
os
.
environ
.
get
(
"AVOCADO_CHECK_LEVEL"
,
0
))
<
2
,
"Skipping test that take a long time to run, are "
"resource intensive or time sensitve"
)
def
test_kill_stopped_sleep
(
self
):
...
...
selftests/functional/test_interrupt.py
浏览文件 @
e5d5064a
...
...
@@ -193,7 +193,7 @@ class InterruptTest(unittest.TestCase):
# Make sure the Interrupted test sentence is there
self
.
assertIn
(
b
'Terminated
\n
'
,
self
.
proc
.
stdout
.
read
())
@
unittest
.
skipIf
(
int
(
os
.
environ
.
get
(
"AVOCADO_CHECK_LEVEL"
,
0
))
<
1
,
@
unittest
.
skipIf
(
int
(
os
.
environ
.
get
(
"AVOCADO_CHECK_LEVEL"
,
0
))
<
2
,
"Skipping test that take a long time to run, are "
"resource intensive or time sensitve"
)
def
test_well_behaved_sigint
(
self
):
...
...
@@ -237,7 +237,7 @@ class InterruptTest(unittest.TestCase):
# Make sure the Killing test subprocess message is not there
self
.
assertNotIn
(
b
'Killing test subprocess'
,
output
)
@
unittest
.
skipIf
(
int
(
os
.
environ
.
get
(
"AVOCADO_CHECK_LEVEL"
,
0
))
<
1
,
@
unittest
.
skipIf
(
int
(
os
.
environ
.
get
(
"AVOCADO_CHECK_LEVEL"
,
0
))
<
2
,
"Skipping test that take a long time to run, are "
"resource intensive or time sensitve"
)
def
test_well_behaved_sigterm
(
self
):
...
...
selftests/functional/test_loader.py
浏览文件 @
e5d5064a
...
...
@@ -191,7 +191,7 @@ class LoaderTestFunctional(unittest.TestCase):
def
test_not_python_module
(
self
):
self
.
_test
(
'passtest'
,
AVOCADO_TEST_OK
,
'NOT_A_TEST'
)
@
unittest
.
skipIf
(
int
(
os
.
environ
.
get
(
"AVOCADO_CHECK_LEVEL"
,
0
))
<
1
,
@
unittest
.
skipIf
(
int
(
os
.
environ
.
get
(
"AVOCADO_CHECK_LEVEL"
,
0
))
<
2
,
"Skipping test that take a long time to run, are "
"resource intensive or time sensitve"
)
def
test_sleep_a_lot
(
self
):
...
...
@@ -253,7 +253,7 @@ class LoaderTestFunctional(unittest.TestCase):
%
(
AVOCADO
,
self
.
tmpdir
,
mytest
))
self
.
_run_with_timeout
(
cmd_line
,
5
)
@
unittest
.
skipIf
(
int
(
os
.
environ
.
get
(
"AVOCADO_CHECK_LEVEL"
,
0
))
<
1
,
@
unittest
.
skipIf
(
int
(
os
.
environ
.
get
(
"AVOCADO_CHECK_LEVEL"
,
0
))
<
2
,
"Skipping test that take a long time to run, are "
"resource intensive or time sensitve"
)
def
test_simple_using_main
(
self
):
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录