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

runner: Fix message when aborting the test

The message logged in TEST_LOG was hardcoded even though multiple reason
could happen. Let's use the proper reason by using "err" variable which
is correctly used on other places.
Signed-off-by: NLukáš Doktor <ldoktor@redhat.com>
上级 d353959d
...@@ -234,8 +234,7 @@ class TestStatus(object): ...@@ -234,8 +234,7 @@ class TestStatus(object):
test_state['text_output'] = log_file_obj.read() test_state['text_output'] = log_file_obj.read()
except IOError: except IOError:
test_state["text_output"] = "Not available, file not created yet" test_state["text_output"] = "Not available, file not created yet"
TEST_LOG.error('ERROR %s -> TestAbortedError: ' TEST_LOG.error('ERROR %s -> TestAbortedError: %s.', err,
'Test process died without reporting the status.',
test_state['name']) test_state['name'])
if proc.is_alive(): if proc.is_alive():
TEST_LOG.warning("Killing hanged test process %s" % proc.pid) TEST_LOG.warning("Killing hanged test process %s" % proc.pid)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册