summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2020-10-09 14:43:34 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2020-10-10 13:37:56 +0100
commit5088e3b64b1a7a037ea530a92fcaa7a202cf6337 (patch)
tree59a49077b30dd998cb792a95e45d457992831567
parentf5b4cd065f414de353b30f9b43254973d18b6acb (diff)
downloadpoky-5088e3b64b1a7a037ea530a92fcaa7a202cf6337.tar.gz
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>
-rwxr-xr-xscripts/oe-build-perf-report2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/oe-build-perf-report b/scripts/oe-build-perf-report
index 7ed86a72f6..b46d61869c 100755
--- a/scripts/oe-build-perf-report
+++ b/scripts/oe-build-perf-report
@@ -353,7 +353,7 @@ def print_html_report(data, id_comp, buildstats):
353 bs_key = test + '.' + meas 353 bs_key = test + '.' + meas
354 rev = str(metadata['commit_num']['value']) 354 rev = str(metadata['commit_num']['value'])
355 comp_rev = str(metadata['commit_num']['value_old']) 355 comp_rev = str(metadata['commit_num']['value_old'])
356 if (rev in buildstats and bs_key in buildstats[rev] and 356 if (buildstats and rev in buildstats and bs_key in buildstats[rev] and
357 comp_rev in buildstats and bs_key in buildstats[comp_rev]): 357 comp_rev in buildstats and bs_key in buildstats[comp_rev]):
358 new_meas['buildstats'] = BSSummary(buildstats[comp_rev][bs_key], 358 new_meas['buildstats'] = BSSummary(buildstats[comp_rev][bs_key],
359 buildstats[rev][bs_key]) 359 buildstats[rev][bs_key])