* [PATCH] buildstats: Fix trackbacks for early task failures
@ 2016-04-14 13:53 Richard Purdie
0 siblings, 0 replies; only message in thread
From: Richard Purdie @ 2016-04-14 13:53 UTC (permalink / raw)
To: openembedded-core
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@linuxfoundation.org>
diff --git a/meta/classes/buildstats.bbclass b/meta/classes/buildstats.bbclass
index d381c93..ab72af5 100644
--- a/meta/classes/buildstats.bbclass
+++ b/meta/classes/buildstats.bbclass
@@ -195,6 +195,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
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2016-04-14 13:53 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-04-14 13:53 [PATCH] buildstats: Fix trackbacks for early task failures Richard Purdie
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox