summaryrefslogtreecommitdiffstats
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-03-26 15:38:28 +0000
commit988205356de6bc1fc495a286d8cdde49acd56eba (patch)
tree7780119b904208df53cefe5ea0081a9c23fdeaad
parent3975e0ea7ab2053a137f1797466b7f60b0a42bcf (diff)
downloadpoky-988205356de6bc1fc495a286d8cdde49acd56eba.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) (From OE-Core rev: c6351550a9bff3e0b0e3d3c0baefed4041c47b33) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-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 38c0ee885d..2d64e301d2 100755
--- a/scripts/oe-build-perf-report
+++ b/scripts/oe-build-perf-report
@@ -540,6 +540,7 @@ Examine build performance test results from a Git repository"""
540 help="Tag name (pattern) for finding results") 540 help="Tag name (pattern) for finding results")
541 group.add_argument('--hostname', '-H') 541 group.add_argument('--hostname', '-H')
542 group.add_argument('--branch', '-B', default='master') 542 group.add_argument('--branch', '-B', default='master')
543 group.add_argument('--branch2')
543 group.add_argument('--machine', default='qemux86') 544 group.add_argument('--machine', default='qemux86')
544 group.add_argument('--history-length', default=25, type=int, 545 group.add_argument('--history-length', default=25, type=int,
545 help="Number of tested revisions to plot in html report") 546 help="Number of tested revisions to plot in html report")
@@ -577,6 +578,10 @@ def main(argv=None):
577 578
578 revs = get_test_revs(repo, args.tag_name, hostname=args.hostname, 579 revs = get_test_revs(repo, args.tag_name, hostname=args.hostname,
579 branch=args.branch, machine=args.machine) 580 branch=args.branch, machine=args.machine)
581 if args.branch2:
582 revs = revs + get_test_revs(repo, args.tag_name, hostname=args.hostname,
583 branch=args.branch2, machine=args.machine)
584
580 if len(revs) < 2: 585 if len(revs) < 2:
581 log.error("%d tester revisions found, unable to generate report", 586 log.error("%d tester revisions found, unable to generate report",
582 len(revs)) 587 len(revs))