def __init__(self, host, port_name=None, **kwargs): Port.__init__(self, host, port_name or TestPort.default_port_name, **kwargs) self._tests = unit_test_list() self._flakes = set() self._expectations_path = LAYOUT_TEST_DIR + '/platform/test/TestExpectations' self._results_directory = None self._operating_system = self._name.split('-')[1] if self._operating_system == 'linux': self._os_version = None else: self._os_version = VersionNameMap.map(self.host.platform).from_name(self._name.split('-')[2])[1]
def __init__(self, host, port_name=None, **kwargs): Port.__init__(self, host, port_name or TestPort.default_port_name, **kwargs) self._tests = unit_test_list() self._flakes = set() self._expectations_path = LAYOUT_TEST_DIR + "/platform/test/TestExpectations" self._results_directory = None self._operating_system = "mac" if self._name.startswith("test-win"): self._operating_system = "win" elif self._name.startswith("test-linux"): self._operating_system = "linux" version_map = { "test-win-xp": "xp", "test-win-win7": "win7", "test-win-vista": "vista", "test-mac-leopard": "leopard", "test-mac-snowleopard": "snowleopard", "test-linux-x86_64": "lucid", } self._version = version_map[self._name]
def __init__(self, host, port_name=None, **kwargs): Port.__init__(self, host, port_name or TestPort.default_port_name, **kwargs) self._tests = unit_test_list() self._flakes = set() self._expectations_path = LAYOUT_TEST_DIR + '/platform/test/TestExpectations' self._results_directory = None self._operating_system = 'mac' if self._name.startswith('test-win'): self._operating_system = 'win' elif self._name.startswith('test-linux'): self._operating_system = 'linux' version_map = { 'test-win-xp': 'xp', 'test-win-win7': 'win7', 'test-win-vista': 'vista', 'test-mac-leopard': 'leopard', 'test-mac-snowleopard': 'snowleopard', 'test-linux-x86_64': 'lucid', } self._version = version_map[self._name]