提交 ba5c0956 编写于 作者: L Lukáš Doktor

runner: Raise RuntimeError instead of SystemExit

The SystemExit exception does not produce the traceback, let's use
RuntimeError instead to be able to tell where the test was interrupted.
Signed-off-by: NLukáš Doktor <ldoktor@redhat.com>
上级 478617a1
......@@ -305,7 +305,7 @@ class TestRunner(object):
def sigterm_handler(signum, frame): # pylint: disable=W0613
""" Produce traceback on SIGTERM """
raise SystemExit("Test interrupted by SIGTERM")
raise RuntimeError("Test interrupted by SIGTERM")
signal.signal(signal.SIGTERM, sigterm_handler)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册