]> code.ossystems Code Review - openembedded-core.git/commitdiff
scripts/oe-build-perf-report: fix dumping buildstats
authorMarkus Lehtonen <markus.lehtonen@linux.intel.com>
Fri, 15 Sep 2017 12:54:49 +0000 (15:54 +0300)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Mon, 18 Sep 2017 10:07:23 +0000 (11:07 +0100)
Fix a misbehavior when some of the buildstats are missing.

Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
scripts/oe-build-perf-report

index b5ad42bc8a1c38128715a8290d58798600653b5e..23081db1732c3656df75aa356c2f60a99d3301be 100755 (executable)
@@ -422,6 +422,7 @@ def dump_buildstats(repo, outdir, notes_ref, revs):
                                                   'show', tag + '^0']))
             except GitError:
                 log.warning("Buildstats not found for %s", tag)
+                bs_all = {}
                 missing = True
             for measurement, buildstats in bs_all.items():
                 tag_base, run_id = tag.rsplit('/', 1)