3
0
Fork 0
mirror of https://github.com/YosysHQ/sby.git synced 2025-04-05 14:04:07 +00:00

Fix bug in task management

This commit is contained in:
Clifford Wolf 2017-01-30 12:04:35 +01:00
parent 363273df52
commit f49cd7c1a0

View file

@ -97,11 +97,11 @@ class SbyTask:
if self.p.poll() is not None: if self.p.poll() is not None:
self.job.log("%s: finished (returncode=%d)" % (self.info, self.p.returncode)) self.job.log("%s: finished (returncode=%d)" % (self.info, self.p.returncode))
self.handle_exit(self.p.returncode)
self.job.tasks_running.remove(self) self.job.tasks_running.remove(self)
self.running = False self.running = False
self.handle_exit(self.p.returncode)
if self.checkretcode and self.p.returncode != 0: if self.checkretcode and self.p.returncode != 0:
self.job.status = "ERROR" self.job.status = "ERROR"
self.job.log("%s: job failed. ERROR." % self.info) self.job.log("%s: job failed. ERROR." % self.info)