From 97ac0a2f7c43b3df1aca641d84af6194588d3bc6 Mon Sep 17 00:00:00 2001 From: Richard Purdie Date: Fri, 9 Oct 2020 14:43:34 +0100 Subject: scripts/oe-build-perf-report: Allow operation with no buildstats If buildstats is missing, avoid a backtrace. (From OE-Core rev: a518443e6799d56b899536d853282182eff4822a) Signed-off-by: Richard Purdie (cherry picked from commit 23c4b21f947c7aae1303ca6526fc5aaaa9fc7bb8) Signed-off-by: Steve Sakoman Signed-off-by: Richard Purdie --- scripts/oe-build-perf-report | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'scripts') 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): 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]) -- cgit v1.2.3-54-g00ecf