mirror of
https://git.yoctoproject.org/poky
synced 2026-06-01 00:59:48 +00:00
classes/lib: Remove bb.build.FuncFailed
Whilst seemingly a good idea, this exception doesn't really serve any purpose that bb.fatal() doesn't cover. Wrapping exceptions within exceptions isn't pythonic. Its not used in many places, lets clean up those and remove usage of it entirely. It may ultimately be dropped form bitbake entirely. (From OE-Core rev: efe87ce4b2154c6f1c591ed9d8f770c229b044ad) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
@@ -175,7 +175,7 @@ class QemuTarget(BaseTarget):
|
||||
if os.path.exists(self.qemulog):
|
||||
with open(self.qemulog, 'r') as f:
|
||||
bb.error("Qemu log output from %s:\n%s" % (self.qemulog, f.read()))
|
||||
raise bb.build.FuncFailed("%s - FAILED to start qemu - check the task log and the boot log" % self.pn)
|
||||
raise RuntimeError("%s - FAILED to start qemu - check the task log and the boot log" % self.pn)
|
||||
|
||||
def check(self):
|
||||
return self.runner.is_alive()
|
||||
@@ -192,7 +192,7 @@ class QemuTarget(BaseTarget):
|
||||
self.server_ip = self.runner.server_ip
|
||||
self.connection = SSHControl(ip=self.ip, logfile=self.sshlog)
|
||||
else:
|
||||
raise bb.build.FuncFailed("%s - FAILED to re-start qemu - check the task log and the boot log" % self.pn)
|
||||
raise RuntimError("%s - FAILED to re-start qemu - check the task log and the boot log" % self.pn)
|
||||
|
||||
def run_serial(self, command, timeout=60):
|
||||
return self.runner.run_serial(command, timeout=timeout)
|
||||
|
||||
Reference in New Issue
Block a user