ios/build/bots/scripts/xctest_utils.py
def ProcessLine(self, line):
    """This is called once with each line of the test log."""

    # Track line number for error messages.
    self._line_number += 1

    # Some tests (net_unittests in particular) run subprocesses which can write
    # stuff to shared stdout buffer. Sometimes such output appears between new
    # line and gtest directives ('[  RUN  ]', etc) which breaks the parser.
    # Code below tries to detect such cases and recognize a mixed line as two
    # separate lines.

    # List of regexps that parses expects to find at the start of a line but
    # which can be somewhere in the middle.
    gtest_regexps = [
        self._test_start,
        self._test_ok,
        self._test_fail,
        self._test_execute_failed,
        self._test_execute_succeeded,
    ]

    for regexp in gtest_regexps:
      match = regexp.search(line)
      if match:
        break

    if not match or match.start() == 0:
      self._ProcessLine(line)
    else:
      self._ProcessLine(line[:match.start()])
      self._ProcessLine(line[match.start():])
This is called once with each line of the test log.
This is called once with each line of the test log.
This is called once with each line of the test log .
def ProcessLine(self, line):
    self._line_number += 1
    gtest_regexps = [
        self._test_start,
        self._test_ok,
        self._test_fail,
        self._test_execute_failed,
        self._test_execute_succeeded,
    ]
    for regexp in gtest_regexps:
      match = regexp.search(line)
      if match:
        break
    if not match or match.start() == 0:
      self._ProcessLine(line)
    else:
      self._ProcessLine(line[:match.start()])
      self._ProcessLine(line[match.start():])
def ProcessLine ( self , line ) : self . _line_number += 1 gtest_regexps = [ self . _test_start , self . _test_ok , self . _test_fail , self . _test_execute_failed , self . _test_execute_succeeded , ] for regexp in gtest_regexps : match = regexp . search ( line ) if match : break if not match or match . start ( ) == 0 : self . _ProcessLine ( line ) else : self . _ProcessLine ( line [ : match . start ( ) ] ) self . _ProcessLine ( line [ match . start ( ) : ] )
This is called once with each line of the test log.
This is called once with each line of the test log .
"""This is called once with each line of the test log.""" # Track line number for error messages. # Some tests (net_unittests in particular) run subprocesses which can write # stuff to shared stdout buffer. Sometimes such output appears between new # line and gtest directives ('[  RUN  ]', etc) which breaks the parser. # Code below tries to detect such cases and recognize a mixed line as two # separate lines. # List of regexps that parses expects to find at the start of a line but # which can be somewhere in the middle.
self
line