3
0
Fork 0
mirror of https://github.com/YosysHQ/sby.git synced 2025-04-27 23:45:50 +00:00

Decouple taskloop from task

This commit is contained in:
Jannis Harder 2022-04-21 16:22:32 +02:00
parent c944a9c99c
commit 0fe8c223cf
2 changed files with 119 additions and 48 deletions

View file

@ -458,13 +458,11 @@ def run_task(taskname):
for k, v in exe_paths.items():
task.exe_paths[k] = v
if throw_err:
try:
task.run(setupmode)
else:
try:
task.run(setupmode)
except SbyAbort:
pass
except SbyAbort:
if throw_err:
raise
if my_opt_tmpdir:
task.log(f"Removing directory '{my_workdir}'.")