mirror of
https://github.com/YosysHQ/sby.git
synced 2025-04-06 14:24:08 +00:00
Add rc to DONE msg
This commit is contained in:
parent
be8c995e15
commit
ad304ddda7
|
@ -472,8 +472,6 @@ class SbyJob:
|
||||||
for line in self.summary:
|
for line in self.summary:
|
||||||
self.log("summary: %s" % line)
|
self.log("summary: %s" % line)
|
||||||
|
|
||||||
self.log("DONE (%s)" % self.status)
|
|
||||||
|
|
||||||
assert self.status in ["PASS", "FAIL", "UNKNOWN", "ERROR", "TIMEOUT"]
|
assert self.status in ["PASS", "FAIL", "UNKNOWN", "ERROR", "TIMEOUT"]
|
||||||
|
|
||||||
if self.status in self.expect:
|
if self.status in self.expect:
|
||||||
|
@ -485,6 +483,8 @@ class SbyJob:
|
||||||
if self.status == "UNKNOWN": self.retcode = 4
|
if self.status == "UNKNOWN": self.retcode = 4
|
||||||
if self.status == "TIMEOUT": self.retcode = 5
|
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:
|
with open("%s/%s" % (self.workdir, self.status), "w") as f:
|
||||||
for line in self.summary:
|
for line in self.summary:
|
||||||
print(line, file=f)
|
print(line, file=f)
|
||||||
|
|
Loading…
Reference in a new issue