[autobuilder-helper,thud,33/40] build-perf/send-qa-email: Fallback to master as a comparision branch
Submitted by Richard Purdie on Sept. 10, 2020, 1:30 p.m.
|
Patch ID: 176355
Details
Commit Message
@@ -185,6 +185,9 @@ if git_repo:
basebranch, comparebranch = utils.getcomparisonbranch(ourconfig, args.repo, args.branch)
if comparebranch:
extraopts = extraopts + " --branch2 %s" % (comparebranch)
+ else:
+ print("No comparision branch found, comparing to master")
+ extraopts = extraopts + " --branch2 master"
print("\nGenerating test report")
open(report_txt, "w").close()
@@ -54,6 +54,9 @@ if 'poky' in repos and os.path.exists(resulttool) and args.results_dir:
extraopts = " --branch %s --commit %s" % (branch, revision)
if comparebranch:
extraopts = extraopts + " --branch2 %s" % (comparebranch)
+ elif basebranch:
+ print("No comparision branch found, comparing to master")
+ extraopts = extraopts + " --branch2 master"
report = subprocess.check_output([resulttool, "report", args.results_dir])
with open(args.results_dir + "/testresult-report.txt", "wb") as f:
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> --- scripts/build-perf-test-wrapper | 3 +++ scripts/send-qa-email | 3 +++ 2 files changed, 6 insertions(+)