tools/bisect-builds.py
def AskIsGoodBuild(rev, exit_status, stdout, stderr):
  """Asks the user whether build |rev| is good or bad."""
  if exit_status:
    print('Chrome exit_status: %d. Use s to see output' % exit_status)
  # Loop until we get a response that we can parse.
  while True:
    prompt = ('Revision %s is '
              '[(g)ood/(b)ad/(r)etry/(u)nknown/(s)tdout/(q)uit]: ' % str(rev))
    if sys.version_info[0] == 3:
      response = input(prompt)
    else:
      response = raw_input(prompt)
    if response in ('g', 'b', 'r', 'u'):
      return response
    if response == 'q':
      raise SystemExit()
    if response == 's':
      print(stdout)
      print(stderr)
Asks the user whether build |rev| is good or bad.
Asks the user whether build |rev| is good or bad.
Asks the user whether build |rev| is good or bad .
def AskIsGoodBuild(rev, exit_status, stdout, stderr):
  if exit_status:
    print('Chrome exit_status: %d. Use s to see output' % exit_status)
  while True:
    prompt = ('Revision %s is '
              '[(g)ood/(b)ad/(r)etry/(u)nknown/(s)tdout/(q)uit]: ' % str(rev))
    if sys.version_info[0] == 3:
      response = input(prompt)
    else:
      response = raw_input(prompt)
    if response in ('g', 'b', 'r', 'u'):
      return response
    if response == 'q':
      raise SystemExit()
    if response == 's':
      print(stdout)
      print(stderr)
def AskIsGoodBuild ( rev , exit_status , stdout , stderr ) : if exit_status : print ( 'Chrome exit_status: %d. Use s to see output' % exit_status ) while True : prompt = ( 'Revision %s is ' '[(g)ood/(b)ad/(r)etry/(u)nknown/(s)tdout/(q)uit]: ' % str ( rev ) ) if sys . version_info [ 0 ] == 3 : response = input ( prompt ) else : response = raw_input ( prompt ) if response in ( 'g' , 'b' , 'r' , 'u' ) : return response if response == 'q' : raise SystemExit ( ) if response == 's' : print ( stdout ) print ( stderr )
Asks the user whether build |rev| is good or bad.
Asks the user whether build |rev| is good or bad .
"""Asks the user whether build |rev| is good or bad.""" # Loop until we get a response that we can parse.
rev
exit_status
stdout
stderr