Explain empty report in compare_codereview.py.
Let user know when control and roll have no common trybots, instead of being silent. BUG=skia: R=borenet@google.com Author: halcanary@google.com Review URL: https://codereview.chromium.org/135683003 git-svn-id: http://skia.googlecode.com/svn/trunk@13194 2bbb7eff-a529-9590-31e7-b0007b416f81
This commit is contained in:
parent
b3bf362ce2
commit
788a5f0871
@ -325,12 +325,15 @@ def main(control_url, roll_url, verbosity=1):
|
||||
# pylint: disable=I0011,R0914,R0912
|
||||
control = CodeReviewHTMLParser.parse(control_url)
|
||||
roll = CodeReviewHTMLParser.parse(roll_url)
|
||||
if not (control and roll):
|
||||
all_bots = set(control) & set(roll) # Set intersection.
|
||||
if not all_bots:
|
||||
print >> sys.stderr, (
|
||||
'Error: control %s and roll %s have no common trybots.'
|
||||
% (list(control), list(roll)))
|
||||
return
|
||||
|
||||
control_name = '[control %s]' % control_url.split('/')[-1]
|
||||
roll_name = '[roll %s]' % roll_url.split('/')[-1]
|
||||
all_bots = set(control) & set(roll) # Set intersection.
|
||||
|
||||
out = sys.stdout
|
||||
if verbosity > 0:
|
||||
|
Loading…
Reference in New Issue
Block a user