diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2020-10-09 14:43:34 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2020-10-10 13:37:44 +0100 |
commit | 23c4b21f947c7aae1303ca6526fc5aaaa9fc7bb8 (patch) | |
tree | 90d4089878d9bb7ab610d5bb6d89aec2fe193657 /scripts/oe-build-perf-report | |
parent | 8a4c473c07cba159cf88ed775b9f073c6adf31d4 (diff) | |
download | openembedded-core-contrib-23c4b21f947c7aae1303ca6526fc5aaaa9fc7bb8.tar.gz |
scripts/oe-build-perf-report: Allow operation with no buildstats
If buildstats is missing, avoid a backtrace.
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'scripts/oe-build-perf-report')
-rwxr-xr-x | scripts/oe-build-perf-report | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/oe-build-perf-report b/scripts/oe-build-perf-report index 7ed86a72f66..b46d61869c0 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]) |