Add rc to DONE msg
authorClifford Wolf <clifford@clifford.at>
Mon, 27 Feb 2017 21:27:52 +0000 (22:27 +0100)
committerClifford Wolf <clifford@clifford.at>
Mon, 27 Feb 2017 21:27:52 +0000 (22:27 +0100)
sbysrc/sby_core.py

index 35ec89af929d3c781023ce692edc560e364f3991..594f6d79e21c7dd50e1994e6712f28ee6f072451 100644 (file)
@@ -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)