third_party/blink/tools/blinkpy/w3c/import_notifier.py
def find_owned_directory(self, test_name):
        """Finds the lowest directory that contains the test and has OWNERS.

        Args:
            The name of the test (a path relative to web_tests).

        Returns:
            The path of the found directory relative to web_tests.
        """
        # Always use non-virtual test names when looking up OWNERS.
        if self.default_port.lookup_virtual_test_base(test_name):
            test_name = self.default_port.lookup_virtual_test_base(test_name)
        # find_owners_file takes either a relative path from the *root* of the
        # repository, or an absolute path.
        abs_test_path = self.finder.path_from_web_tests(test_name)
        owners_file = self.owners_extractor.find_owners_file(
            self.host.filesystem.dirname(abs_test_path))
        if not owners_file:
            return None
        owned_directory = self.host.filesystem.dirname(owners_file)
        short_directory = self.host.filesystem.relpath(
            owned_directory, self.finder.web_tests_dir())
        return short_directory
Finds the lowest directory that contains the test and has OWNERS.

        Args:
            The name of the test (a path relative to web_tests).

        Returns:
            The path of the found directory relative to web_tests.
        
Finds the lowest directory that contains the test and has OWNERS.
Args:
The name of the test (a path relative to web_tests).

The path of the found directory relative to web_tests.
Finds the lowest directory that contains the test and has OWNERS . Args : The name of the test ( a path relative to web_tests ) . The path of the found directory relative to web_tests .
def find_owned_directory(self, test_name):
        if self.default_port.lookup_virtual_test_base(test_name):
            test_name = self.default_port.lookup_virtual_test_base(test_name)
        abs_test_path = self.finder.path_from_web_tests(test_name)
        owners_file = self.owners_extractor.find_owners_file(
            self.host.filesystem.dirname(abs_test_path))
        if not owners_file:
            return None
        owned_directory = self.host.filesystem.dirname(owners_file)
        short_directory = self.host.filesystem.relpath(
            owned_directory, self.finder.web_tests_dir())
        return short_directory
def find_owned_directory ( self , test_name ) : if self . default_port . lookup_virtual_test_base ( test_name ) : test_name = self . default_port . lookup_virtual_test_base ( test_name ) abs_test_path = self . finder . path_from_web_tests ( test_name ) owners_file = self . owners_extractor . find_owners_file ( self . host . filesystem . dirname ( abs_test_path ) ) if not owners_file : return None owned_directory = self . host . filesystem . dirname ( owners_file ) short_directory = self . host . filesystem . relpath ( owned_directory , self . finder . web_tests_dir ( ) ) return short_directory
Finds the lowest directory that contains the test and has OWNERS.
Finds the lowest directory that contains the test and has OWNERS .
"""Finds the lowest directory that contains the test and has OWNERS.

        Args:
            The name of the test (a path relative to web_tests).

        Returns:
            The path of the found directory relative to web_tests.
        """ # Always use non-virtual test names when looking up OWNERS. # find_owners_file takes either a relative path from the *root* of the # repository, or an absolute path.
self
test_name