mirror of
https://github.com/YosysHQ/sby.git
synced 2025-04-22 21:05:30 +00:00
Add docs for "wait" option, more config checking
This commit is contained in:
parent
bdb8321069
commit
29968fcc58
2 changed files with 10 additions and 2 deletions
|
@ -129,9 +129,7 @@ class SbyJob:
|
|||
self.files = dict()
|
||||
self.models = dict()
|
||||
self.workdir = workdir
|
||||
|
||||
self.status = "UNKNOWN"
|
||||
self.expect = ["PASS"]
|
||||
|
||||
self.tasks_running = []
|
||||
self.tasks_all = []
|
||||
|
@ -363,12 +361,18 @@ class SbyJob:
|
|||
|
||||
def run(self):
|
||||
assert "mode" in self.options
|
||||
assert self.options["mode"] in ["bmc", "prove", "cover"]
|
||||
|
||||
self.expect = ["PASS"]
|
||||
if "expect" in self.options:
|
||||
self.expect = self.options["expect"].upper().split(",")
|
||||
|
||||
for s in self.expect:
|
||||
assert s in ["PASS", "FAIL", "UNKNOWN", "ERROR", "TIMEOUT"]
|
||||
|
||||
self.waitmode = False
|
||||
if "wait" in self.options:
|
||||
assert self.options["wait"] in ["on", "off"]
|
||||
self.waitmode = self.options["wait"] == "on"
|
||||
|
||||
self.copy_src()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue