[1/3] toaster: put runbuilds output into a log file

Submitted by Avery, Brian on Feb. 7, 2017, 8:36 p.m. | Patch ID: 136842

Details

Message ID e42921471c2ee872ade42a9bf0c0d7a48d4061db.1486499681.git.brian.avery@intel.com
State New
Headers show

Commit Message

Avery, Brian Feb. 7, 2017, 8:36 p.m.
The output from runbuilds should not spout over the
console where you would be running cmdline builds.
Redirected to TOASTER_DIR/toaster_runbuilds.log.

[YOCTO #11006]

Signed-off-by: brian avery <brian.avery@intel.com>
---
 bitbake/bin/toaster | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

Patch hide | download patch | download mbox

diff --git a/bitbake/bin/toaster b/bitbake/bin/toaster
index daaf8ea..37a1116 100755
--- a/bitbake/bin/toaster
+++ b/bitbake/bin/toaster
@@ -255,7 +255,10 @@  case $CMD in
             return 4
         fi
         export BITBAKE_UI='toasterui'
-        $MANAGE runbuilds &
+        $MANAGE runbuilds \
+           </dev/null >>${BUILDDIR}/toaster_runbuilds.log 2>&1 \
+           & echo $! >${BUILDDIR}/.runbuilds.pid
+
         # set fail safe stop system on terminal exit
         trap stop_system SIGHUP
         echo "Successful ${CMD}."