From: Claire Wolf Date: Mon, 27 Jan 2020 16:59:33 +0000 (+0100) Subject: Add special handling for command not found errors X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=a5fce77344286c014ae4a58a3f51b68b4ec4f7cd;p=SymbiYosys.git Add special handling for command not found errors Signed-off-by: Claire Wolf --- diff --git a/sbysrc/sby_core.py b/sbysrc/sby_core.py index 5d41fd8..5fbc308 100644 --- a/sbysrc/sby_core.py +++ b/sbysrc/sby_core.py @@ -167,6 +167,13 @@ class SbyTask: all_tasks_running.remove(self) self.running = False + if self.p.returncode == 127: + self.job.status = "ERROR" + self.job.log("%s: COMMAND NOT FOUND. ERROR." % self.info) + self.terminated = True + self.job.terminate() + return + self.handle_exit(self.p.returncode) if self.checkretcode and self.p.returncode != 0: