summaryrefslogtreecommitdiffstats
path: root/scripts/oe-build-perf-report
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2019-02-08 13:38:22 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2019-02-08 23:15:32 +0000
commite0a58a99c406a1d3c36cc7a286edb4382adaebe2 (patch)
treeed83336d141b0a07480864bf4ecd2bfa1dd04836 /scripts/oe-build-perf-report
parent054ecaba7885c09b6eb2df0cdf10ca21b7eb0e9d (diff)
downloadpoky-e0a58a99c406a1d3c36cc7a286edb4382adaebe2.tar.gz
oe-build-perf-report: Allow commits from different branches
The code won't currently allow comparisions of two commits on different branches even if the commits are specified by their hashes. This updates the code to search two branches for any relavent commits, hence allowing comparisions to be made. A particularly useful case is master vs. master-next for example. (From OE-Core rev: 2d835bb1570c515ae501442f3ce19fae8e249b27) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'scripts/oe-build-perf-report')
-rwxr-xr-xscripts/oe-build-perf-report5
1 files changed, 5 insertions, 0 deletions
diff --git a/scripts/oe-build-perf-report b/scripts/oe-build-perf-report
index c91f74192b..b7b09391cb 100755
--- a/scripts/oe-build-perf-report
+++ b/scripts/oe-build-perf-report
@@ -542,6 +542,7 @@ Examine build performance test results from a Git repository"""
542 help="Tag name (pattern) for finding results") 542 help="Tag name (pattern) for finding results")
543 group.add_argument('--hostname', '-H') 543 group.add_argument('--hostname', '-H')
544 group.add_argument('--branch', '-B', default='master') 544 group.add_argument('--branch', '-B', default='master')
545 group.add_argument('--branch2')
545 group.add_argument('--machine', default='qemux86') 546 group.add_argument('--machine', default='qemux86')
546 group.add_argument('--history-length', default=25, type=int, 547 group.add_argument('--history-length', default=25, type=int,
547 help="Number of tested revisions to plot in html report") 548 help="Number of tested revisions to plot in html report")
@@ -579,6 +580,10 @@ def main(argv=None):
579 580
580 revs = get_test_revs(repo, args.tag_name, hostname=args.hostname, 581 revs = get_test_revs(repo, args.tag_name, hostname=args.hostname,
581 branch=args.branch, machine=args.machine) 582 branch=args.branch, machine=args.machine)
583 if args.branch2:
584 revs = revs + get_test_revs(repo, args.tag_name, hostname=args.hostname,
585 branch=args.branch2, machine=args.machine)
586
582 if len(revs) < 2: 587 if len(revs) < 2:
583 log.error("%d tester revisions found, unable to generate report", 588 log.error("%d tester revisions found, unable to generate report",
584 len(revs)) 589 len(revs))