third_party/blink/tools/blinkpy/web_tests/controllers/single_test_runner.py
def _report_extra_baseline(self, driver_output, extension, message):
        """If the baseline file exists, logs an error and returns True."""
        if driver_output.crash or driver_output.timeout:
            return False
        # If the baseline overrides a fallback one, we need the empty file to
        # match the empty result.
        if self._port.fallback_expected_filename(self._test_name, extension):
            return False

        expected_file = self._port.expected_filename(
            self._test_name, extension, return_default=False)
        if expected_file:
            _log.error(
                '%s %s, but has an extra baseline file. Please remove %s' %
                (self._test_name, message, expected_file))
            return True
        return False
If the baseline file exists, logs an error and returns True.
If the baseline file exists, logs an error and returns True.
If the baseline file exists logs an error and returns True .
def _report_extra_baseline(self, driver_output, extension, message):
        if driver_output.crash or driver_output.timeout:
            return False
        if self._port.fallback_expected_filename(self._test_name, extension):
            return False
        expected_file = self._port.expected_filename(
            self._test_name, extension, return_default=False)
        if expected_file:
            _log.error(
                '%s %s, but has an extra baseline file. Please remove %s' %
                (self._test_name, message, expected_file))
            return True
        return False
def _report_extra_baseline ( self , driver_output , extension , message ) : if driver_output . crash or driver_output . timeout : return False if self . _port . fallback_expected_filename ( self . _test_name , extension ) : return False expected_file = self . _port . expected_filename ( self . _test_name , extension , return_default = False ) if expected_file : _log . error ( '%s %s, but has an extra baseline file. Please remove %s' % ( self . _test_name , message , expected_file ) ) return True return False
If the baseline file exists, logs an error and returns True.
If the baseline file exists logs an error and returns True .
"""If the baseline file exists, logs an error and returns True.""" # If the baseline overrides a fallback one, we need the empty file to # match the empty result.
self
driver_output
extension
message