From 2aff817c3d55839e41e2abaab048a9f8c489bd43 Mon Sep 17 00:00:00 2001 From: Lucas Meneghel Rodrigues Date: Mon, 11 Aug 2014 12:17:09 -0300 Subject: [PATCH] Set 'INTERRUPTED' status for interrupted tests If we press Ctrl+C, the test that was being executed still does not have a status, and that reflects in the job log with a None printed in the final status. So, if there's no status yet, we should safely (?) assume that the test was interrupted. Signed-off-by: Lucas Meneghel Rodrigues --- avocado/test.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/avocado/test.py b/avocado/test.py index 13c43c7b..f419db47 100644 --- a/avocado/test.py +++ b/avocado/test.py @@ -399,6 +399,8 @@ class Test(unittest.TestCase): self.fail_reason) else: + if self.status is None: + self.status = 'INTERRUPTED' self.log.info("%s %s", self.status, self.tagged_name) -- GitLab