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

Changeset 252727 in webkit


Ignore:
Timestamp:
Nov 20, 2019, 9:12:56 PM (7 years ago)
Author:
Jonathan Bedard
Message:

run-webkit-tests: Make usability test on booting simulators more robust
https://bugs.webkit.org/show_bug.cgi?id=204423
<rdar://problem/57364735>

Reviewed by Alexey Proskuryakov.

  • Scripts/webkitpy/xcode/simulated_device.py:

(SimulatedDevice.is_usable): Use regular expressions to find home-screen service.

Location:
trunk/Tools
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Tools/ChangeLog

    r252722 r252727  
     12019-11-20  Jonathan Bedard  <jbedard@apple.com>
     2
     3        run-webkit-tests: Make usability test on booting simulators more robust
     4        https://bugs.webkit.org/show_bug.cgi?id=204423
     5        <rdar://problem/57364735>
     6
     7        Reviewed by Alexey Proskuryakov.
     8
     9        * Scripts/webkitpy/xcode/simulated_device.py:
     10        (SimulatedDevice.is_usable): Use regular expressions to find home-screen service.
     11
    1122019-11-20  Jonathan Bedard  <jbedard@apple.com>
    213
  • trunk/Tools/Scripts/webkitpy/xcode/simulated_device.py

    r252722 r252727  
    560560            return True
    561561
    562         for line in self.executive.run_command([SimulatedDeviceManager.xcrun, 'simctl', 'spawn', self.udid, 'launchctl', 'print', 'system'], decode_output=False).splitlines():
    563             if home_screen_service in line:
    564                 return True
     562        system_processes = self.executive.run_command([SimulatedDeviceManager.xcrun, 'simctl', 'spawn', self.udid, 'launchctl', 'print', 'system'], decode_output=False)
     563        if re.search(r'"{}"'.format(home_screen_service), system_processes) or re.search(r'A\s+{}'.format(home_screen_service), system_processes):
     564            return True
    565565        return False
    566566
Note: See TracChangeset for help on using the changeset viewer.