third_party/blink/tools/blinkpy/common/checkout/baseline_optimizer.py
def _remove_extra_result_at_root(self, test_name, baseline_name):
        """Removes extra result at the non-virtual root."""
        assert not self._virtual_base(baseline_name), \
            'A virtual baseline is passed in.'
        path = self._join_directory(self._baseline_root(), baseline_name)
        if (self._filesystem.exists(path)
                and ResultDigest(self._filesystem, path,
                                 self._is_reftest(test_name)).is_extra_result):
            _log.debug(
                'Deleting extra baseline (empty, -expected.png for reftest, or all-PASS testharness JS result)'
            )
            _log.debug('    Deleting (file system): ' + path)
            self._filesystem.remove(path)
Removes extra result at the non-virtual root.
Removes extra result at the non-virtual root.
Removes extra result at the non - virtual root .
def _remove_extra_result_at_root(self, test_name, baseline_name):
        assert not self._virtual_base(baseline_name), \
            'A virtual baseline is passed in.'
        path = self._join_directory(self._baseline_root(), baseline_name)
        if (self._filesystem.exists(path)
                and ResultDigest(self._filesystem, path,
                                 self._is_reftest(test_name)).is_extra_result):
            _log.debug(
                'Deleting extra baseline (empty, -expected.png for reftest, or all-PASS testharness JS result)'
            )
            _log.debug('    Deleting (file system): ' + path)
            self._filesystem.remove(path)
def _remove_extra_result_at_root ( self , test_name , baseline_name ) : assert not self . _virtual_base ( baseline_name ) , 'A virtual baseline is passed in.' path = self . _join_directory ( self . _baseline_root ( ) , baseline_name ) if ( self . _filesystem . exists ( path ) and ResultDigest ( self . _filesystem , path , self . _is_reftest ( test_name ) ) . is_extra_result ) : _log . debug ( 'Deleting extra baseline (empty, -expected.png for reftest, or all-PASS testharness JS result)' ) _log . debug ( '    Deleting (file system): ' + path ) self . _filesystem . remove ( path )
Removes extra result at the non-virtual root.
Removes extra result at the non - virtual root .
"""Removes extra result at the non-virtual root."""
self
test_name
baseline_name