提交 77aeb90e 编写于 作者: R Rudá Moura

avocado.test: Add TimeOutSkipTest (skip due timeout).

Use TimeOutSkipTest as a placeholder for a test, to mark
that it will not execute due a job timeout.
Signed-off-by: NRudá Moura <rmoura@redhat.com>
上级 63ce55fb
......@@ -583,3 +583,17 @@ class NotATest(Test):
e_msg = ('File %s is not executable and does not contain an avocado '
'test class in it ' % self.name)
raise exceptions.NotATestError(e_msg)
class TimeOutSkipTest(Test):
"""
Skip test due job timeout.
This test is skipped due a job timeout.
It will never have a chance to execute.
"""
def runTest(self):
e_msg = 'Test skipped due a job timeout!'
raise exceptions.TestNAError(e_msg)
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册