From 790b2d1387a150b85612ad38a53bab788154e4bb Mon Sep 17 00:00:00 2001 From: Ed Bartosh Date: Wed, 2 Mar 2016 21:26:54 -0800 Subject: bitbake: toaster: raise NotImplementedError Raised NotImplementedError instead of Exception to be able to catch it. This is a preparation for removing sshbecontroller module. It has to be done as code in bldcontrol/tests.py imports custom NotImplementedException from sshbecontroller. (Bitbake rev: c243ab6c83fe12d84777e4c3a18fd393827b9327) Signed-off-by: Ed Bartosh Signed-off-by: brian avery Signed-off-by: Richard Purdie --- bitbake/lib/toaster/bldcontrol/bbcontroller.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'bitbake/lib/toaster/bldcontrol/bbcontroller.py') diff --git a/bitbake/lib/toaster/bldcontrol/bbcontroller.py b/bitbake/lib/toaster/bldcontrol/bbcontroller.py index 1387bdaa7b..f228d37459 100644 --- a/bitbake/lib/toaster/bldcontrol/bbcontroller.py +++ b/bitbake/lib/toaster/bldcontrol/bbcontroller.py @@ -138,7 +138,7 @@ class BuildEnvironmentController(object): After this method executes, self.be bbaddress/bbport MUST point to a running and free server, and the bbstate MUST be updated to "started". """ - raise Exception("FIXME: Must override in order to actually start the BB server") + raise NotImplementedError("FIXME: Must override in order to actually start the BB server") def setLayers(self, bitbake, ls): @@ -149,7 +149,7 @@ class BuildEnvironmentController(object): a word of attention: by convention, the first layer for any build will be poky! """ - raise Exception("FIXME: Must override setLayers") + raise NotImplementedError("FIXME: Must override setLayers") def getBBController(self): @@ -176,16 +176,16 @@ class BuildEnvironmentController(object): up to the implementing BEC. The return MUST be a REST URL where a GET will actually return the content of the artifact, e.g. for use as a "download link" in a web UI. """ - raise Exception("Must return the REST URL of the artifact") + raise NotImplementedError("Must return the REST URL of the artifact") def release(self): """ This stops the server and releases any resources. After this point, all resources are un-available for further reference """ - raise Exception("Must override BE release") + raise NotImplementedError("Must override BE release") def triggerBuild(self, bitbake, layers, variables, targets): - raise Exception("Must override BE release") + raise NotImplementedError("Must override BE release") class ShellCmdException(Exception): pass -- cgit v1.2.3-54-g00ecf