3
0
Fork 0
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:
N. Engelhardt 2020-04-29 16:09:18 +02:00
parent 5d6323147d
commit cb01f8469c

View file

@ -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),
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
job.update_status(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:
def make_exit_callback2(i):
def exit_callback2(line):
def exit_callback2(retcode):
assert retcode == 0
job.update_status(task_status)
job.log("engine_{}: Status returned by engine: {}".format(engine_idx, task_status))