tools/bisect-builds.py
def IsGoodASANBuild(rev, exit_status, stdout, stderr):
  """Determine if an ASAN build |rev| is good or bad

  Will examine stderr looking for the error message emitted by ASAN. If not
  found then will fallback to asking the user."""
  if stderr:
    bad_count = 0
    for line in stderr.splitlines():
      print(line)
      if line.find('ERROR: AddressSanitizer:') != -1:
        bad_count += 1
    if bad_count > 0:
      print('Revision %d determined to be bad.' % rev)
      return 'b'
  return AskIsGoodBuild(rev, exit_status, stdout, stderr)
Determine if an ASAN build |rev| is good or bad

  Will examine stderr looking for the error message emitted by ASAN. If not
  found then will fallback to asking the user.
Determine if an ASAN build |rev| is good or bad
Will examine stderr looking for the error message emitted by ASAN. If not
found then will fallback to asking the user.
Determine if an ASAN build |rev| is good or bad Will examine stderr looking for the error message emitted by ASAN . If not found then will fallback to asking the user .
def IsGoodASANBuild(rev, exit_status, stdout, stderr):
  if stderr:
    bad_count = 0
    for line in stderr.splitlines():
      print(line)
      if line.find('ERROR: AddressSanitizer:') != -1:
        bad_count += 1
    if bad_count > 0:
      print('Revision %d determined to be bad.' % rev)
      return 'b'
  return AskIsGoodBuild(rev, exit_status, stdout, stderr)
def IsGoodASANBuild ( rev , exit_status , stdout , stderr ) : if stderr : bad_count = 0 for line in stderr . splitlines ( ) : print ( line ) if line . find ( 'ERROR: AddressSanitizer:' ) != - 1 : bad_count += 1 if bad_count > 0 : print ( 'Revision %d determined to be bad.' % rev ) return 'b' return AskIsGoodBuild ( rev , exit_status , stdout , stderr )
Determine if an ASAN build |rev| is good or bad
Will examine stderr looking for the error message emitted by ASAN.
Determine if an ASAN build |rev| is good or bad Will examine stderr looking for the error message emitted by ASAN .
"""Determine if an ASAN build |rev| is good or bad

  Will examine stderr looking for the error message emitted by ASAN. If not
  found then will fallback to asking the user."""
rev
exit_status
stdout
stderr