mirror of
https://github.com/YosysHQ/sby.git
synced 2025-04-05 22:14:08 +00:00
fix return code check in btor engine
This commit is contained in:
parent
5d6323147d
commit
cb01f8469c
|
@ -136,7 +136,7 @@ def run(mode, job, engine_idx, engine):
|
||||||
"cd {dir}; btorsim -c --vcd engine_{idx}/trace.vcd --hierarchical-symbols --info model/design_btor.info model/design_btor.btor engine_{idx}/trace.wit".format(dir=job.workdir, idx=engine_idx),
|
"cd {dir}; btorsim -c --vcd engine_{idx}/trace.vcd --hierarchical-symbols --info model/design_btor.info model/design_btor.btor engine_{idx}/trace.wit".format(dir=job.workdir, idx=engine_idx),
|
||||||
logfile=open("{dir}/engine_{idx}/logfile2.txt".format(dir=job.workdir, idx=engine_idx), "w"))
|
logfile=open("{dir}/engine_{idx}/logfile2.txt".format(dir=job.workdir, idx=engine_idx), "w"))
|
||||||
|
|
||||||
def exit_callback2(line):
|
def exit_callback2(retcode):
|
||||||
assert retcode == 0
|
assert retcode == 0
|
||||||
job.update_status(task_status)
|
job.update_status(task_status)
|
||||||
job.log("engine_{}: Status returned by engine: {}".format(engine_idx, task_status))
|
job.log("engine_{}: Status returned by engine: {}".format(engine_idx, task_status))
|
||||||
|
@ -152,7 +152,7 @@ def run(mode, job, engine_idx, engine):
|
||||||
|
|
||||||
else:
|
else:
|
||||||
def make_exit_callback2(i):
|
def make_exit_callback2(i):
|
||||||
def exit_callback2(line):
|
def exit_callback2(retcode):
|
||||||
assert retcode == 0
|
assert retcode == 0
|
||||||
job.update_status(task_status)
|
job.update_status(task_status)
|
||||||
job.log("engine_{}: Status returned by engine: {}".format(engine_idx, task_status))
|
job.log("engine_{}: Status returned by engine: {}".format(engine_idx, task_status))
|
||||||
|
|
Loading…
Reference in a new issue