All of lore.kernel.org
 help / color / mirror / Atom feed
* [tisdk-build-scripts][PATCH v2] bitbake-test-sdk-image: preserve bitbake-cookerdaemon.log
@ 2018-05-10 16:25 Jacob Stiffler
  0 siblings, 0 replies; only message in thread
From: Jacob Stiffler @ 2018-05-10 16:25 UTC (permalink / raw)
  To: meta-arago

* When stdout/stderr is piped, if there is an error during parsing,
  all that will be printed is "Unable to start bitbake server"
* The bitbake-cookerdaemon.log will contain the error message, so
  preserve it in the LOG_DIR.

Signed-off-by: Jacob Stiffler <j-stiffler@ti.com>
---
v2 changes: Inhibit error if log does not exist.

 lib/oesdk/bitbake-test-sdk-image | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/lib/oesdk/bitbake-test-sdk-image b/lib/oesdk/bitbake-test-sdk-image
index f17b594..98c8b4e 100644
--- a/lib/oesdk/bitbake-test-sdk-image
+++ b/lib/oesdk/bitbake-test-sdk-image
@@ -465,6 +465,12 @@ bitbake_sdk_images(){
             fi
         done
 
+        # Move the bitbake-cooker.log as some errors may get hidden in there.
+        #
+        # If it does not exist, then there is not much we can do, so inhibit the
+        # error code.
+        mv $build_dir/bitbake-cookerdaemon.log $LOG_DIR/$m-bitbake-cookerdaemon.log || true
+
         # Only run the build testing if the status of the above builds
         # was "pass"
         if [ "$build_status" == "pass" ]
-- 
1.9.1



^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2018-05-10 16:25 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-05-10 16:25 [tisdk-build-scripts][PATCH v2] bitbake-test-sdk-image: preserve bitbake-cookerdaemon.log Jacob Stiffler

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.