avocado.core.exceptions: Introduce TestTimeoutError exception

Intended to be used in the special case a test times out.
Also, explain better what a TestError is supposed to be
(right now the description causes confusion).
Signed-off-by: NLucas Meneghel Rodrigues <lmr@redhat.com>
上级 171bd529
......@@ -58,7 +58,19 @@ class TestSetupFail(TestBaseException):
class TestError(TestBaseException):
"""
Indicates that something went wrong with the test harness itself.
Indicates that the test was not fully executed and an error happened.
This is the sort of exception you raise if the test was partially
executed and could not complete due to a setup, configuration,
or another fatal condition.
"""
status = "ERROR"
class TestTimeoutError(TestBaseException):
"""
Indicates that the test did not finish before the timeout specified.
"""
status = "ERROR"
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册