提交 fea19afe 编写于 作者: L Lucas Meneghel Rodrigues

examples/tests/abort: Add a timeout to avoid aborttest taking too long

It is likely that a race condition in avocado makes the abort
test to take a long while executing (24 hours), but that
was only identified in the Travis CI environment. Instead
of taking that long, we should end the abort test quickly,
after a test timeout. This will allow us to continue to
see the failure, only that the rest of the tests will be
executed, and no penalties to Travis due to inefficient
builds.

Of course, we still need to find the actual bug and fix it.
Signed-off-by: NLucas Meneghel Rodrigues <lmr@redhat.com>
上级 d23efbea
......@@ -11,6 +11,7 @@ class abort(test.Test):
"""
A test that just calls abort() (and abort).
"""
default_params = {'timeout': 2.0}
def action(self):
os.abort()
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册