]> code.ossystems Code Review - openembedded-core.git/commit
buildstats: Fix tracebacks for early task failures
authorRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 14 Apr 2016 13:53:14 +0000 (14:53 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 15 Apr 2016 05:57:48 +0000 (06:57 +0100)
commitbd0a65ec47ebf55c549c9ef276b201b72396ce2b
tree0a94773831b24e70e2534ea4f636bed21acd2b27
parente5c43dc7f1e17f360b5dc762045ccf7895d18843
buildstats: Fix tracebacks 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@linuxfoundation.org>
meta/classes/buildstats.bbclass