diff options
author | Yeoh Ee Peng <ee.peng.yeoh@intel.com> | 2019-11-07 17:50:27 +0800 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2019-11-14 13:20:59 +0000 |
commit | 3adefee2a152561cf05aa6538e2b0bee2815e09d (patch) | |
tree | 67d40392f78fac16e3bdc6f276b2688780e2df0b /scripts/lib/resulttool/resultutils.py | |
parent | 00736266f25183950d17cd886bba82bf3780c0dc (diff) | |
download | poky-3adefee2a152561cf05aa6538e2b0bee2815e09d.tar.gz |
scripts/resulttool/report: Enable report to use regression_map
By default, report will use the store_map to generate the key
to reference each result set. In some situation when using store_map
with multiple set of tests sharing similar test configurations,
the report will only showing partial result set for results
that having identical result_id (use of multiconfig to run tests
where it generate identical result_id).
Enable report to have the option to use the regression_map (optional)
instead of the default store_map, where it will take larger
set of configurations to generate the key to reference each
result set, this will prevent the report from only showing
partial result set.
(From OE-Core rev: 8577abce6feb1f529537da554d39e86a5b05ca2d)
Signed-off-by: Yeoh Ee Peng <ee.peng.yeoh@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'scripts/lib/resulttool/resultutils.py')
-rw-r--r-- | scripts/lib/resulttool/resultutils.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/lib/resulttool/resultutils.py b/scripts/lib/resulttool/resultutils.py index 7cb85a6aa9..f0ae8ec1c5 100644 --- a/scripts/lib/resulttool/resultutils.py +++ b/scripts/lib/resulttool/resultutils.py | |||
@@ -177,7 +177,7 @@ def save_resultsdata(results, destdir, fn="testresults.json", ptestjson=False, p | |||
177 | with open(dst.replace(fn, "ptest-%s.log" % i), "w+") as f: | 177 | with open(dst.replace(fn, "ptest-%s.log" % i), "w+") as f: |
178 | f.write(sectionlog) | 178 | f.write(sectionlog) |
179 | 179 | ||
180 | def git_get_result(repo, tags): | 180 | def git_get_result(repo, tags, configmap=store_map): |
181 | git_objs = [] | 181 | git_objs = [] |
182 | for tag in tags: | 182 | for tag in tags: |
183 | files = repo.run_cmd(['ls-tree', "--name-only", "-r", tag]).splitlines() | 183 | files = repo.run_cmd(['ls-tree', "--name-only", "-r", tag]).splitlines() |
@@ -200,7 +200,7 @@ def git_get_result(repo, tags): | |||
200 | # Optimize by reading all data with one git command | 200 | # Optimize by reading all data with one git command |
201 | results = {} | 201 | results = {} |
202 | for obj in parse_json_stream(repo.run_cmd(['show'] + git_objs + ['--'])): | 202 | for obj in parse_json_stream(repo.run_cmd(['show'] + git_objs + ['--'])): |
203 | append_resultsdata(results, obj) | 203 | append_resultsdata(results, obj, configmap=configmap) |
204 | 204 | ||
205 | return results | 205 | return results |
206 | 206 | ||