From cd6460226921f271eb405cee0a4337b43f3bb2c3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Luk=C3=A1=C5=A1=20Doktor?= Date: Tue, 25 Apr 2017 16:04:03 +0200 Subject: [PATCH] runner: Fix message when aborting the test MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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: Lukáš Doktor --- avocado/core/runner.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/avocado/core/runner.py b/avocado/core/runner.py index 5f6ce196..97028dcc 100644 --- a/avocado/core/runner.py +++ b/avocado/core/runner.py @@ -234,8 +234,7 @@ class TestStatus(object): test_state['text_output'] = log_file_obj.read() except IOError: test_state["text_output"] = "Not available, file not created yet" - TEST_LOG.error('ERROR %s -> TestAbortedError: ' - 'Test process died without reporting the status.', + TEST_LOG.error('ERROR %s -> TestAbortedError: %s.', err, test_state['name']) if proc.is_alive(): TEST_LOG.warning("Killing hanged test process %s" % proc.pid) -- GitLab