Пример #1
0
    def __init__(self, host, port_name, **kwargs):
        DarwinPort.__init__(self, host, port_name, **kwargs)

        optional_device_class = self.get_option('device_class')
        self._printing_cmd_line = False
        self._device_class = optional_device_class if optional_device_class else self.DEFAULT_DEVICE_CLASS
        _log.debug('IOSSimulatorPort _device_class is %s', self._device_class)
Пример #2
0
    def __init__(self, host, port_name, **kwargs):
        DarwinPort.__init__(self, host, port_name, **kwargs)

        optional_device_class = self.get_option('device_class')
        self._printing_cmd_line = False
        self._device_class = optional_device_class if optional_device_class else self.DEFAULT_DEVICE_CLASS
        _log.debug('IOSSimulatorPort _device_class is %s', self._device_class)
Пример #3
0
 def __init__(self, host, port_name, **kwargs):
     DarwinPort.__init__(self, host, port_name, **kwargs)
     version_name_map = VersionNameMap.map(host.platform)
     self._os_version = None
     if port_name.split('-') > 1:
         self._os_version = version_name_map.from_name(port_name.split('-')[1])[1]
     elif self.host.platform.is_mac():
         self._os_version = self.host.platform.os_version
     if not self._os_version:
         self._os_version = MacPort.CURRENT_VERSION
     assert self._os_version.major == 10
Пример #4
0
 def __init__(self, host, port_name, **kwargs):
     DarwinPort.__init__(self, host, port_name, **kwargs)
     version_name_map = VersionNameMap.map(host.platform)
     self._os_version = None
     split_port_name = port_name.split('-')
     if len(split_port_name) > 1 and split_port_name[1] != 'wk2':
         self._os_version = version_name_map.from_name(split_port_name[1])[1]
     elif self.host.platform.is_mac() and apple_additions():
         self._os_version = self.host.platform.os_version
     if not self._os_version:
         self._os_version = MacPort.CURRENT_VERSION
     assert self._os_version.major == 10
Пример #5
0
 def __init__(self, host, port_name, **kwargs):
     DarwinPort.__init__(self, host, port_name, **kwargs)
     version_name_map = VersionNameMap.map(host.platform)
     if port_name.split('-') > 1:
         self._os_version = version_name_map.from_name(
             port_name.split('-')[1])[1]
     elif self.host.platform.is_mac():
         self._os_version = self.host.platform.os_version
     else:
         sorted_versions = sorted(
             version_name_map.mapping_for_platform(
                 platform=self.port_name).values())
         self._os_version = sorted_versions[
             sorted_versions.index(self.VERSION_MAX) - 1]
Пример #6
0
    def __init__(self, host, port_name, **kwargs):
        DarwinPort.__init__(self, host, port_name, **kwargs)

        optional_device_class = self.get_option('device_class')
        self._printing_cmd_line = False
        self._device_class = optional_device_class if optional_device_class else self.DEFAULT_DEVICE_CLASS
        _log.debug('IOSSimulatorPort _device_class is %s', self._device_class)

        self._current_device = Simulator(host).current_device()
        if not self._current_device:
            self.set_option('dedicated_simulators', True)
        if not self.get_option('dedicated_simulators'):
            if self.get_option('child_processes') > 1:
                _log.warn('Cannot have more than one child process when using a running simulator.  Setting child_processes to 1.')
            self.set_option('child_processes', 1)
Пример #7
0
    def __init__(self, host, port_name, **kwargs):
        DarwinPort.__init__(self, host, port_name, **kwargs)

        optional_device_class = self.get_option('device_class')
        self._printing_cmd_line = False
        self._device_class = optional_device_class if optional_device_class else self.DEFAULT_DEVICE_CLASS
        _log.debug('IOSSimulatorPort _device_class is %s', self._device_class)

        self._current_device = Simulator(host).current_device()
        if not self._current_device:
            self.set_option('dedicated_simulators', True)
        if not self.get_option('dedicated_simulators'):
            if self.get_option('child_processes') > 1:
                _log.warn(
                    'Cannot have more than one child process when using a running simulator.  Setting child_processes to 1.'
                )
            self.set_option('child_processes', 1)
Пример #8
0
 def __init__(self, host, port_name, **kwargs):
     DarwinPort.__init__(self, host, port_name, **kwargs)
Пример #9
0
 def __init__(self, host, port_name, **kwargs):
     DarwinPort.__init__(self, host, port_name, **kwargs)
     self._os_version = port_name.split('-')[1] if port_name.split(
         '-') > 1 else self.host.platform.os_version
Пример #10
0
 def __init__(self, host, port_name, **kwargs):
     DarwinPort.__init__(self, host, port_name, **kwargs)