[oe-commits] [openembedded-core] branch master-next updated: buildstats: Fix trackbacks for early task failures

git at git.openembedded.org git at git.openembedded.org
Thu Apr 14 13:56:32 UTC 2016


rpurdie pushed a commit to branch master-next
in repository openembedded-core.

The following commit(s) were added to refs/heads/master-next by this push:
       new  a090aa7   buildstats: Fix trackbacks for early task failures
a090aa7 is described below

commit a090aa76bba82de57d30f7077857229385395b71
Author: Richard Purdie <richard.purdie at linuxfoundation.org>
AuthorDate: Thu Apr 14 14:53:14 2016 +0100

    buildstats: Fix trackbacks for early task failures
    
    If a failure occurs early in the task, its possible we can have a
    TaskFailed before the TaskStarted event can be triggered. This in
    turn causes another traceback as the directory buildstats writes
    files into doesn't exist.
    
    Ensure the directory exists so we can see the original error.
    
    Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>
---
 meta/classes/buildstats.bbclass | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/meta/classes/buildstats.bbclass b/meta/classes/buildstats.bbclass
index 2d63589..34ecb03 100644
--- a/meta/classes/buildstats.bbclass
+++ b/meta/classes/buildstats.bbclass
@@ -167,6 +167,8 @@ python run_buildstats () {
                 f.write("Uncompressed Rootfs size: %s" % rootfs_size)
 
     elif isinstance(e, bb.build.TaskFailed):
+        # Can have a failure before TaskStarted so need to mkdir here too
+        bb.utils.mkdirhier(taskdir)
         write_task_data("failed", os.path.join(taskdir, e.task), e, d)
         ########################################################################
         # Lets make things easier and tell people where the build failed in

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


More information about the Openembedded-commits mailing list