def __init__(self, port_name=None, os_version_string=None, rebaselining=False, **kwargs): # We're a little generic here because this code is reused by the # 'google-chrome' port as well as the 'mock-' and 'dryrun-' ports. port_name = port_name or 'chromium-mac' if port_name.endswith('-mac'): # FIXME: The rebaselining flag is an ugly hack that lets us create an # "chromium-mac" port that is not version-specific. It should only be # used by rebaseline-chromium-webkit-tests to explicitly put files into # the generic directory. In theory we shouldn't need this, because # the newest mac port should be using 'chromium-mac' as the baseline # directory. However, we also don't have stable SL bots :( # # When we remove this FIXME, we also need to remove '' as a valid # fallback key in self.FALLBACK_PATHS. if rebaselining: self._version = '' else: self._version = mac.os_version(os_version_string, self.SUPPORTED_OS_VERSIONS) port_name = port_name + '-' + self._version else: self._version = port_name[port_name.index('-mac-') + 5:] assert self._version in self.SUPPORTED_OS_VERSIONS chromium.ChromiumPort.__init__(self, port_name=port_name, **kwargs)
def __init__(self, port_name=None, os_version_string=None, **kwargs): # We're a little generic here because this code is reused by the # 'google-chrome' port as well as the 'mock-' and 'dryrun-' ports. port_name = port_name or "chromium-mac" chromium.ChromiumPort.__init__(self, port_name=port_name, **kwargs) if port_name.endswith("-mac"): self._version = mac.os_version(os_version_string, self.SUPPORTED_OS_VERSIONS) self._name = port_name + "-" + self._version else: self._version = port_name[port_name.index("-mac-") + 5 :] assert self._version in self.SUPPORTED_OS_VERSIONS self._operating_system = "mac"
def __init__(self, port_name=None, os_version_string=None, **kwargs): # We're a little generic here because this code is reused by the # 'google-chrome' port as well as the 'mock-' and 'dryrun-' ports. port_name = port_name or 'chromium-mac' chromium.ChromiumPort.__init__(self, port_name=port_name, **kwargs) if port_name.endswith('-mac'): self._version = mac.os_version(os_version_string, self.SUPPORTED_OS_VERSIONS) self._name = port_name + '-' + self._version else: self._version = port_name[port_name.index('-mac-') + 5:] assert self._version in self.SUPPORTED_OS_VERSIONS self._operating_system = 'mac'
def __init__(self, port_name=None, os_version_string=None, **kwargs): # We're a little generic here because this code is reused by the # 'google-chrome' port as well as the 'mock-' and 'dryrun-' ports. port_name = port_name or 'chromium-cg-mac' # FIXME: Change the default to chromium-mac once we're ready. chromium.ChromiumPort.__init__(self, port_name=port_name, **kwargs) if port_name.endswith('-mac'): self._version = mac.os_version(os_version_string, self.SUPPORTED_OS_VERSIONS) self._name = port_name + '-' + self._version else: self._version = port_name[port_name.index('-mac-') + len('-mac-'):] assert self._version in self.SUPPORTED_OS_VERSIONS self._using_core_graphics = port_name.find('-cg-') != -1 if self._using_core_graphics: self._graphics_type = 'cpu-cg' else: self._graphics_type = 'cpu' self._operating_system = 'mac'
def __init__(self, port_name=None, os_version_string=None, **kwargs): # We're a little generic here because this code is reused by the # 'google-chrome' port as well as the 'mock-' and 'dryrun-' ports. port_name = port_name or 'chromium-mac' chromium.ChromiumPort.__init__(self, port_name=port_name, **kwargs) if port_name.endswith('-mac'): self._version = mac.os_version(os_version_string, self.SUPPORTED_OS_VERSIONS) self._name = port_name + '-' + self._version else: self._version = port_name[port_name.index('-mac-') + len('-mac-'):] assert self._version in self.SUPPORTED_OS_VERSIONS self._using_core_graphics = port_name.find('-cg-') != -1 if self._using_core_graphics: self._graphics_type = 'cpu-cg' else: self._graphics_type = 'cpu' self._operating_system = 'mac'