avocado.core.exceptions: Introducing TestInterruptError

Add a special exception for when tests are interrupted
by Ctrl + C, and the required mapping in status.
Signed-off-by: NLucas Meneghel Rodrigues <lmr@redhat.com>
上级 b32fa0ef
......@@ -83,6 +83,14 @@ class TestTimeoutError(TestBaseException):
status = "ERROR"
class TestInterruptedError(TestBaseException):
"""
Indicates that the test was interrupted by the user (Ctrl+C)
"""
status = "INTERRUPTED"
class TestAbortError(TestBaseException):
"""
......
......@@ -25,7 +25,8 @@ mapping = {"TEST_NA": True,
"START": True,
"ALERT": False,
"RUNNING": False,
"NOSTATUS": False}
"NOSTATUS": False,
"INTERRUPTED": False}
feedback = {
# Test did not advertise current status, but process running the test is
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册