mirror of
git://git.yoctoproject.org/poky.git
synced 2025-07-19 12:59:02 +02:00
scripts/oe-build-perf-report: Allow operation with no buildstats
If buildstats is missing, avoid a backtrace. (From OE-Core rev: 23c4b21f947c7aae1303ca6526fc5aaaa9fc7bb8) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
parent
f5b4cd065f
commit
5088e3b64b
|
@ -353,7 +353,7 @@ def print_html_report(data, id_comp, buildstats):
|
|||
bs_key = test + '.' + meas
|
||||
rev = str(metadata['commit_num']['value'])
|
||||
comp_rev = str(metadata['commit_num']['value_old'])
|
||||
if (rev in buildstats and bs_key in buildstats[rev] and
|
||||
if (buildstats and rev in buildstats and bs_key in buildstats[rev] and
|
||||
comp_rev in buildstats and bs_key in buildstats[comp_rev]):
|
||||
new_meas['buildstats'] = BSSummary(buildstats[comp_rev][bs_key],
|
||||
buildstats[rev][bs_key])
|
||||
|
|
Loading…
Reference in New Issue
Block a user