def __init__(self, running_port, target_port, platform, options): """ Args: running_port: the Port the script is running on. target_port: the Port the script uses to find port-specific configuration information like the test_expectations.txt file location and the list of test platforms. platform: the test platform to rebaseline options: the command-line options object.""" self._platform = platform self._options = options self._port = running_port self._target_port = target_port self._rebaseline_port = port.get( self._target_port.test_platform_name_to_name(platform), options) self._rebaselining_tests = [] self._rebaselined_tests = [] # Create tests and expectations helper which is used to: # -. compile list of tests that need rebaselining. # -. update the tests in test_expectations file after rebaseline # is done. expectations_str = self._rebaseline_port.test_expectations() self._test_expectations = \ test_expectations.TestExpectations(self._rebaseline_port, None, expectations_str, self._platform, False, False) self._scm = scm.default_scm()
def __init__(self, platform, options): self._file_dir = path_utils.GetAbsolutePath( os.path.dirname(sys.argv[0])) self._platform = platform self._options = options self._rebaselining_tests = [] self._rebaselined_tests = [] # Create tests and expectations helper which is used to: # -. compile list of tests that need rebaselining. # -. update the tests in test_expectations file after rebaseline is done. self._test_expectations = test_expectations.TestExpectations( None, self._file_dir, platform, False)
def __init__(self, platform, options): self._file_dir = path_utils.path_from_base('webkit', 'tools', 'layout_tests') self._platform = platform self._options = options self._rebaselining_tests = [] self._rebaselined_tests = [] # Create tests and expectations helper which is used to: # -. compile list of tests that need rebaselining. # -. update the tests in test_expectations file after rebaseline # is done. self._test_expectations = \ test_expectations.TestExpectations(None, self._file_dir, platform, False, False) self._repo_type = self._get_repo_type()