⚠ Archived content — this site is no longer maintained.   Current WebKit documentation is at docs.webkit.org.

Changeset 197227 in webkit


Ignore:
Timestamp:
Feb 26, 2016, 6:53:44 PM (11 years ago)
Author:
ap@apple.com
Message:

[iOS Simulator] Reftests don't work
​https://bugs.webkit.org/show_bug.cgi?id=154764

Reviewed by Daniel Bates.

  • Scripts/webkitpy/port/image_diff.py: (IOSSimulatorImageDiffer._start):

Use simctl instead of sim.

Location:
trunk/Tools
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Tools/ChangeLog

    r197225 r197227  
     12016-02-26  Alexey Proskuryakov  <ap@apple.com>
     2
     3        [iOS Simulator] Reftests don't work
     4        https://bugs.webkit.org/show_bug.cgi?id=154764
     5
     6        Reviewed by Daniel Bates.
     7
     8        * Scripts/webkitpy/port/image_diff.py: (IOSSimulatorImageDiffer._start):
     9        Use simctl instead of sim.
     10
    1112016-02-26  Chris Dumez  <cdumez@apple.com>
    212
  • trunk/Tools/Scripts/webkitpy/port/image_diff.py

    r173452 r197227  
    118118class IOSSimulatorImageDiffer(ImageDiffer):
    119119    def _start(self, tolerance):
    120         command = ['xcrun', '-sdk', 'iphonesimulator', 'sim', '--environment=preserve', '--adopt-pid', self._port._path_to_image_diff(), '--tolerance', str(tolerance)]
     120        # FIXME: Using "booted" is not 100% correct, we should use a device ID that we created.
     121        # FIXME: Is it a problem that ImageDiff and simctl remain separate processes? This code used to pass --adopt-pid to sim tool.
     122        # We should probably just build and use a host version of ImageDiff instead of a simulator one to solve both.
     123        command = ['xcrun', '-sdk', 'iphonesimulator', 'simctl', 'spawn', 'booted', self._port._path_to_image_diff(), '--tolerance', str(tolerance)]
    121124        environment = self._port.setup_environ_for_server('ImageDiff')
    122125        self._process = self._port._server_process_constructor(self._port, 'ImageDiff', command, environment)
Note: See TracChangeset for help on using the changeset viewer.