From ad304ddda70ad19de08e0cde2c50607c952e33fd Mon Sep 17 00:00:00 2001 From: Clifford Wolf Date: Mon, 27 Feb 2017 22:27:52 +0100 Subject: [PATCH] Add rc to DONE msg --- sbysrc/sby_core.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sbysrc/sby_core.py b/sbysrc/sby_core.py index 35ec89a..594f6d7 100644 --- a/sbysrc/sby_core.py +++ b/sbysrc/sby_core.py @@ -472,8 +472,6 @@ class SbyJob: for line in self.summary: self.log("summary: %s" % line) - self.log("DONE (%s)" % self.status) - assert self.status in ["PASS", "FAIL", "UNKNOWN", "ERROR", "TIMEOUT"] if self.status in self.expect: @@ -485,6 +483,8 @@ class SbyJob: if self.status == "UNKNOWN": self.retcode = 4 if self.status == "TIMEOUT": self.retcode = 5 + self.log("DONE (%s, rc=%d)" % (self.status, self.retcode)) + with open("%s/%s" % (self.workdir, self.status), "w") as f: for line in self.summary: print(line, file=f) -- 2.30.2