1
0
mirror of https://git.yoctoproject.org/poky synced 2026-05-30 00:20:08 +00:00

bitbake: toaster: runbuilds Write the pidfile in python rather than shell script

Write the pid file out in the start up of this management command. This
ensures this has happened instead of relying on the shell command having
been run which may or may not be the case. This also makes it simpler for
testing.

Couple of clean ups of runbuilds as identified by pyflake

(Bitbake rev: 999e980ee1a58d16f33ef6c0e41aecdcd0206f39)

Signed-off-by: Michael Wood <michael.g.wood@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
Michael Wood
2016-11-24 11:19:52 +00:00
committed by Richard Purdie
parent ddaac5e4e3
commit 310a9e5d35
3 changed files with 15 additions and 9 deletions
+1 -1
View File
@@ -254,7 +254,7 @@ case $CMD in
return 4
fi
export BITBAKE_UI='toasterui'
$MANAGE runbuilds & echo $! >${BUILDDIR}/.runbuilds.pid
$MANAGE runbuilds &
# set fail safe stop system on terminal exit
trap stop_system SIGHUP
echo "Successful ${CMD}."