summaryrefslogtreecommitdiffstats
path: root/bitbake
diff options
context:
space:
mode:
authorEd Bartosh <ed.bartosh@linux.intel.com>2016-04-06 17:46:23 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2016-04-06 23:10:28 +0100
commita8f6001e0f910bcf60531fca1b1c5ce375390a76 (patch)
tree15338a22e27366962cd73a98e3228f11977a9961 /bitbake
parenta43a16b9fd471d719761354eaab81409d4b07470 (diff)
downloadpoky-a8f6001e0f910bcf60531fca1b1c5ce375390a76.tar.gz
bitbake: toaster: add new parameter to _shellcmd
Added 'nowait' parameter to _shellcmd method to support running chain of commands in a subshell. This is going to be used to stop bitbake server after the build. (Bitbake rev: 89fae3c8712bfaac48686c58b480e40c1abdcfdc) Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com> Signed-off-by: Michael Wood <michael.g.wood@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake')
-rw-r--r--bitbake/lib/toaster/bldcontrol/localhostbecontroller.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/bitbake/lib/toaster/bldcontrol/localhostbecontroller.py b/bitbake/lib/toaster/bldcontrol/localhostbecontroller.py
index 2e3aa37d01..ed46636372 100644
--- a/bitbake/lib/toaster/bldcontrol/localhostbecontroller.py
+++ b/bitbake/lib/toaster/bldcontrol/localhostbecontroller.py
@@ -51,12 +51,14 @@ class LocalhostBEController(BuildEnvironmentController):
51 self.pokydirname = None 51 self.pokydirname = None
52 self.islayerset = False 52 self.islayerset = False
53 53
54 def _shellcmd(self, command, cwd = None): 54 def _shellcmd(self, command, cwd=None, nowait=False):
55 if cwd is None: 55 if cwd is None:
56 cwd = self.be.sourcedir 56 cwd = self.be.sourcedir
57 57
58 logger.debug("lbc_shellcmmd: (%s) %s" % (cwd, command)) 58 logger.debug("lbc_shellcmmd: (%s) %s" % (cwd, command))
59 p = subprocess.Popen(command, cwd = cwd, shell=True, stdout=subprocess.PIPE, stderr=subprocess.PIPE) 59 p = subprocess.Popen(command, cwd = cwd, shell=True, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
60 if nowait:
61 return
60 (out,err) = p.communicate() 62 (out,err) = p.communicate()
61 p.wait() 63 p.wait()
62 if p.returncode: 64 if p.returncode: