Changeset 213926 in webkit


Ignore:
Timestamp:
Mar 14, 2017 12:16:36 PM (7 years ago)
Author:
Jonathan Bedard
Message:

webkitpy: Efficient app installation for device testing
https://bugs.webkit.org/show_bug.cgi?id=169054
<rdar://problem/30790207>

Reviewed by Daniel Bates.

We should only install an app on a device once, not every time the app is run.
Move app installation to setup.

  • Scripts/webkitpy/port/ios.py:

(IOSPort.setup_test_run): Install app to device.

  • Scripts/webkitpy/port/simulator_process.py:

(SimulatorProcess.init): Remove app installation.

Location:
trunk/Tools
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/Tools/ChangeLog

    r213918 r213926  
     12017-03-14  Jonathan Bedard  <jbedard@apple.com>
     2
     3        webkitpy: Efficient app installation for device testing
     4        https://bugs.webkit.org/show_bug.cgi?id=169054
     5        <rdar://problem/30790207>
     6
     7        Reviewed by Daniel Bates.
     8
     9        We should only install an app on a device once, not every time the app is run.
     10        Move app installation to setup.
     11
     12        * Scripts/webkitpy/port/ios.py:
     13        (IOSPort.setup_test_run): Install app to device.
     14        * Scripts/webkitpy/port/simulator_process.py:
     15        (SimulatorProcess.__init__): Remove app installation.
     16
    1172017-03-14  Fujii Hironori  <Hironori.Fujii@sony.com>
    218
  • trunk/Tools/Scripts/webkitpy/port/ios.py

    r213530 r213926  
    8383    def setup_test_run(self, device_class=None):
    8484        self._create_devices(device_class)
     85
     86        for i in xrange(self.child_processes()):
     87            device = self.device_for_worker_number(i)
     88            _log.debug('Installing to {}'.format(device))
     89            # Without passing DYLD_LIBRARY_PATH, libWebCoreTestSupport cannot be loaded and DRT/WKTR will crash pre-launch,
     90            # leaving a crash log which will be picked up in results.  No DYLD_FRAMEWORK_PATH will also cause the DRT/WKTR to
     91            # crash, but this crash will occur post-launch, after install_app has already killed the process.
     92            if not device.install_app(self._path_to_driver(), {'DYLD_LIBRARY_PATH': self._build_path()}):
     93                raise RuntimeError('Failed to install app {} on device {}'.format(self._path_to_driver(), device.udid))
  • trunk/Tools/Scripts/webkitpy/port/simulator_process.py

    r213236 r213926  
    6060        self._bundle_id = port_obj.app_identifier_from_bundle(cmd[0])
    6161        self._device = port_obj.device_for_worker_number(worker_number)
    62         if not self._device.install_app(cmd[0], env):
    63             raise RuntimeError('Failed to install app {} on simulator device {}'.format(cmd[0], self._device.udid))
    6462        env['IPC_IDENTIFIER'] = self._bundle_id + '-' + self._device.udid
    6563
Note: See TracChangeset for help on using the changeset viewer.