[oe-commits] [bitbake] 19/45: toaster: bldcontrol Add forceShutDown function to BitbakeController

git at git.openembedded.org git at git.openembedded.org
Wed Apr 6 22:11:37 UTC 2016


rpurdie pushed a commit to branch master
in repository bitbake.

commit 89dc2ee8f5b7255538082ce4f6cb5277839875a8
Author: Sujith H <sujith.h at gmail.com>
AuthorDate: Wed Apr 6 17:46:29 2016 +0100

    toaster: bldcontrol Add forceShutDown function to BitbakeController
    
    Add forceShutDown function to BitbakeController class. This function
    provides a mechanism to cancel the build from toaster. An API which
    can be used safely to cancel build and hence shutdown running bitbake
    server.
    
    [YOCTO #6787]
    
    Signed-off-by: Sujith H <sujith.h at gmail.com>
    Signed-off-by: Michael Wood <michael.g.wood at intel.com>
    Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>
---
 lib/toaster/bldcontrol/bbcontroller.py | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/lib/toaster/bldcontrol/bbcontroller.py b/lib/toaster/bldcontrol/bbcontroller.py
index 058e490..0f7b66d 100644
--- a/lib/toaster/bldcontrol/bbcontroller.py
+++ b/lib/toaster/bldcontrol/bbcontroller.py
@@ -63,6 +63,9 @@ class BitbakeController(object):
             task = "build"
         return self._runCommand(["buildTargets", targets, task])
 
+    def forceShutDown(self):
+        return self._runCommand(["stateForceShutdown"])
+
 
 
 def getBuildEnvironmentController(**kwargs):

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Openembedded-commits mailing list