third_party/blink/tools/blinkpy/web_tests/controllers/single_test_runner.py
def _handle_error(self, driver_output, reference_filename=None):
        """Returns test failures if some unusual errors happen in driver's run.

        Args:
          driver_output: The output from the driver.
          reference_filename: The full path to the reference file which produced
               the driver_output. This arg is optional and should be used only in
               reftests until we have a better way to know which html file
               is used for producing the driver_output.
        """
        failures = []
        if driver_output.timeout:
            failures.append(
                test_failures.FailureTimeout(driver_output,
                                             bool(reference_filename)))

        if reference_filename:
            testname = self._port.relative_test_filename(reference_filename)
        else:
            testname = self._test_name

        if driver_output.crash:
            failures.append(
                test_failures.FailureCrash(
                    driver_output,
                    is_reftest=bool(reference_filename),
                    process_name=driver_output.crashed_process_name,
                    pid=driver_output.crashed_pid,
                    has_log=self._port.output_contains_sanitizer_messages(
                        driver_output.crash_log)))
            if driver_output.error:
                _log.debug('%s %s crashed, (stderr lines):', self._worker_name,
                           testname)
            else:
                _log.debug('%s %s crashed, (no stderr)', self._worker_name,
                           testname)
        elif driver_output.leak:
            failures.append(
                test_failures.FailureLeak(driver_output,
                                          bool(reference_filename)))
            _log.debug('%s %s leaked', self._worker_name, testname)
        elif driver_output.error:
            _log.debug('%s %s output stderr lines:', self._worker_name,
                       testname)
        for line in driver_output.error.splitlines():
            _log.debug('  %s', line)
        return failures
Returns test failures if some unusual errors happen in driver's run.

        Args:
          driver_output: The output from the driver.
          reference_filename: The full path to the reference file which produced
               the driver_output. This arg is optional and should be used only in
               reftests until we have a better way to know which html file
               is used for producing the driver_output.
        
Returns test failures if some unusual errors happen in driver's run.
Returns test failures if some unusual errors happen in driver ' s run .
def _handle_error(self, driver_output, reference_filename=None):
        failures = []
        if driver_output.timeout:
            failures.append(
                test_failures.FailureTimeout(driver_output,
                                             bool(reference_filename)))
        if reference_filename:
            testname = self._port.relative_test_filename(reference_filename)
        else:
            testname = self._test_name
        if driver_output.crash:
            failures.append(
                test_failures.FailureCrash(
                    driver_output,
                    is_reftest=bool(reference_filename),
                    process_name=driver_output.crashed_process_name,
                    pid=driver_output.crashed_pid,
                    has_log=self._port.output_contains_sanitizer_messages(
                        driver_output.crash_log)))
            if driver_output.error:
                _log.debug('%s %s crashed, (stderr lines):', self._worker_name,
                           testname)
            else:
                _log.debug('%s %s crashed, (no stderr)', self._worker_name,
                           testname)
        elif driver_output.leak:
            failures.append(
                test_failures.FailureLeak(driver_output,
                                          bool(reference_filename)))
            _log.debug('%s %s leaked', self._worker_name, testname)
        elif driver_output.error:
            _log.debug('%s %s output stderr lines:', self._worker_name,
                       testname)
        for line in driver_output.error.splitlines():
            _log.debug('  %s', line)
        return failures
def _handle_error ( self , driver_output , reference_filename = None ) : failures = [ ] if driver_output . timeout : failures . append ( test_failures . FailureTimeout ( driver_output , bool ( reference_filename ) ) ) if reference_filename : testname = self . _port . relative_test_filename ( reference_filename ) else : testname = self . _test_name if driver_output . crash : failures . append ( test_failures . FailureCrash ( driver_output , is_reftest = bool ( reference_filename ) , process_name = driver_output . crashed_process_name , pid = driver_output . crashed_pid , has_log = self . _port . output_contains_sanitizer_messages ( driver_output . crash_log ) ) ) if driver_output . error : _log . debug ( '%s %s crashed, (stderr lines):' , self . _worker_name , testname ) else : _log . debug ( '%s %s crashed, (no stderr)' , self . _worker_name , testname ) elif driver_output . leak : failures . append ( test_failures . FailureLeak ( driver_output , bool ( reference_filename ) ) ) _log . debug ( '%s %s leaked' , self . _worker_name , testname ) elif driver_output . error : _log . debug ( '%s %s output stderr lines:' , self . _worker_name , testname ) for line in driver_output . error . splitlines ( ) : _log . debug ( '  %s' , line ) return failures
Returns test failures if some unusual errors happen in driver's run.
Returns test failures if some unusual errors happen in driver ' s run .
"""Returns test failures if some unusual errors happen in driver's run.

        Args:
          driver_output: The output from the driver.
          reference_filename: The full path to the reference file which produced
               the driver_output. This arg is optional and should be used only in
               reftests until we have a better way to know which html file
               is used for producing the driver_output.
        """
self
driver_output
The output from the driver.
The output from the driver .
reference_filename
The full path to the reference file which produced
the driver_output. This arg is optional and should be used only in
reftests until we have a better way to know which html file
is used for producing the driver_output.
The full path to the reference file which produced the driver_output . This arg is optional and should be used only in reftests until we have a better way to know which html file is used for producing the driver_output .