mirror of
https://git.yoctoproject.org/poky
synced 2026-05-31 00:39:46 +00:00
scripts/oe-build-perf-report: use --hostname in --list
Makes it possible to list test results for certain host only, instead of always listing all results from all hosts. (From OE-Core rev: 3c07f1f05440234243c570ebfb42dcda2f455a3d) Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
a7461ad2a2
commit
0821f3b0f8
@@ -85,7 +85,9 @@ def get_test_runs(repo, tag_name, **kwargs):
|
|||||||
|
|
||||||
def list_test_revs(repo, tag_name, verbosity, **kwargs):
|
def list_test_revs(repo, tag_name, verbosity, **kwargs):
|
||||||
"""Get list of all tested revisions"""
|
"""Get list of all tested revisions"""
|
||||||
fields, revs = get_test_runs(repo, tag_name, **kwargs)
|
valid_kwargs = dict([(k, v) for k, v in kwargs.items() if v is not None])
|
||||||
|
|
||||||
|
fields, revs = get_test_runs(repo, tag_name, **valid_kwargs)
|
||||||
ignore_fields = ['tag_number']
|
ignore_fields = ['tag_number']
|
||||||
if verbosity < 2:
|
if verbosity < 2:
|
||||||
extra_fields = ['COMMITS', 'TEST RUNS']
|
extra_fields = ['COMMITS', 'TEST RUNS']
|
||||||
@@ -509,7 +511,7 @@ def main(argv=None):
|
|||||||
repo = GitRepo(args.repo)
|
repo = GitRepo(args.repo)
|
||||||
|
|
||||||
if args.list:
|
if args.list:
|
||||||
list_test_revs(repo, args.tag_name, args.list)
|
list_test_revs(repo, args.tag_name, args.list, hostname=args.hostname)
|
||||||
return 0
|
return 0
|
||||||
|
|
||||||
# Determine hostname which to use
|
# Determine hostname which to use
|
||||||
|
|||||||
Reference in New Issue
Block a user