third_party/blink/tools/blinkpy/web_tests/controllers/single_test_runner.py
def _run_rebaseline(self):
        """Similar to _run_compare_test(), but has the side effect of updating
        or adding baselines. This is called when --reset-results and/or
        --copy-baselines are specified in the command line. If --reset-results,
        in the returned result we treat baseline mismatch as success."""
        driver_output = self._driver.run_test(self._driver_input())
        expected_driver_output = self._expected_driver_output()

        all_failures = self._compare_output(expected_driver_output,
                                            driver_output)

        if self._options.reset_results:
            # Only report leaks, timeouts and crashes and treat all other
            # failures as successes
            reported_failures = self._handle_error(driver_output)
        else:
            # Return comparison failures between the baseline and the actual
            # output as well as leaks, timeouts and crashes
            reported_failures = all_failures

        self._update_or_add_new_baselines(driver_output, all_failures)

        return build_test_result(
            driver_output,
            self._test_name,
            retry_attempt=self._retry_attempt,
            failures=reported_failures,
            test_run_time=driver_output.test_time,
            pid=driver_output.pid,
            crash_site=driver_output.crash_site)
Similar to _run_compare_test(), but has the side effect of updating
        or adding baselines. This is called when --reset-results and/or
        --copy-baselines are specified in the command line. If --reset-results,
        in the returned result we treat baseline mismatch as success.
Similar to _run_compare_test(), but has the side effect of updating
or adding baselines. This is called when --reset-results and/or
copy-baselines are specified in the command line. If --reset-results,
in the returned result we treat baseline mismatch as success.
Similar to _run_compare_test () but has the side effect of updating or adding baselines . This is called when -- reset - results and / or copy - baselines are specified in the command line . If -- reset - results in the returned result we treat baseline mismatch as success .
def _run_rebaseline(self):
        driver_output = self._driver.run_test(self._driver_input())
        expected_driver_output = self._expected_driver_output()
        all_failures = self._compare_output(expected_driver_output,
                                            driver_output)
        if self._options.reset_results:
            reported_failures = self._handle_error(driver_output)
        else:
            reported_failures = all_failures
        self._update_or_add_new_baselines(driver_output, all_failures)
        return build_test_result(
            driver_output,
            self._test_name,
            retry_attempt=self._retry_attempt,
            failures=reported_failures,
            test_run_time=driver_output.test_time,
            pid=driver_output.pid,
            crash_site=driver_output.crash_site)
def _run_rebaseline ( self ) : driver_output = self . _driver . run_test ( self . _driver_input ( ) ) expected_driver_output = self . _expected_driver_output ( ) all_failures = self . _compare_output ( expected_driver_output , driver_output ) if self . _options . reset_results : reported_failures = self . _handle_error ( driver_output ) else : reported_failures = all_failures self . _update_or_add_new_baselines ( driver_output , all_failures ) return build_test_result ( driver_output , self . _test_name , retry_attempt = self . _retry_attempt , failures = reported_failures , test_run_time = driver_output . test_time , pid = driver_output . pid , crash_site = driver_output . crash_site )
Similar to _run_compare_test(), but has the side effect of updating
or adding baselines.
Similar to _run_compare_test () but has the side effect of updating or adding baselines .
"""Similar to _run_compare_test(), but has the side effect of updating
        or adding baselines. This is called when --reset-results and/or
        --copy-baselines are specified in the command line. If --reset-results,
        in the returned result we treat baseline mismatch as success.""" # Only report leaks, timeouts and crashes and treat all other # failures as successes # Return comparison failures between the baseline and the actual # output as well as leaks, timeouts and crashes
self