summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorMarkus Lehtonen <markus.lehtonen@linux.intel.com>2017-09-15 15:54:52 +0300
committerRichard Purdie <richard.purdie@linuxfoundation.org>2017-09-18 11:07:30 +0100
commit0821f3b0f87ec748698e40211e7db8dc8cbfc651 (patch)
treed5beee3d44200d5883175fdc9f1cb311008fbed3 /scripts
parenta7461ad2a2f06e9cdeead9621ab3c7048ce14227 (diff)
downloadpoky-0821f3b0f87ec748698e40211e7db8dc8cbfc651.tar.gz
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>
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/oe-build-perf-report6
1 files changed, 4 insertions, 2 deletions
diff --git a/scripts/oe-build-perf-report b/scripts/oe-build-perf-report
index defd930b04..89d9d6f6b5 100755
--- a/scripts/oe-build-perf-report
+++ b/scripts/oe-build-perf-report
@@ -85,7 +85,9 @@ def get_test_runs(repo, tag_name, **kwargs):
85 85
86def list_test_revs(repo, tag_name, verbosity, **kwargs): 86def list_test_revs(repo, tag_name, verbosity, **kwargs):
87 """Get list of all tested revisions""" 87 """Get list of all tested revisions"""
88 fields, revs = get_test_runs(repo, tag_name, **kwargs) 88 valid_kwargs = dict([(k, v) for k, v in kwargs.items() if v is not None])
89
90 fields, revs = get_test_runs(repo, tag_name, **valid_kwargs)
89 ignore_fields = ['tag_number'] 91 ignore_fields = ['tag_number']
90 if verbosity < 2: 92 if verbosity < 2:
91 extra_fields = ['COMMITS', 'TEST RUNS'] 93 extra_fields = ['COMMITS', 'TEST RUNS']
@@ -509,7 +511,7 @@ def main(argv=None):
509 repo = GitRepo(args.repo) 511 repo = GitRepo(args.repo)
510 512
511 if args.list: 513 if args.list:
512 list_test_revs(repo, args.tag_name, args.list) 514 list_test_revs(repo, args.tag_name, args.list, hostname=args.hostname)
513 return 0 515 return 0
514 516
515 # Determine hostname which to use 517 # Determine hostname which to use