Changeset 267508 in webkit
- Timestamp:
- Sep 23, 2020, 4:28:50 PM (6 years ago)
- Location:
- trunk/Tools
- Files:
-
- 3 edited
-
ChangeLog (modified) (1 diff)
-
Scripts/webkitpy/common/system/platforminfo.py (modified) (1 diff)
-
Scripts/webkitpy/common/system/platforminfo_unittest.py (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Tools/ChangeLog
r267502 r267508 1 2020-09-23 Jonathan Bedard <jbedard@apple.com> 2 3 webkitpy: Make sw_vers the source of truth for the MacOS version 4 https://bugs.webkit.org/show_bug.cgi?id=216903 5 <rdar://problem/69462735> 6 7 Reviewed by Dewei Zhu. 8 9 * Scripts/webkitpy/common/system/platforminfo.py: 10 (PlatformInfo.__init__): Use sw_vers instead of platform.mac_ver(). 11 * Scripts/webkitpy/common/system/platforminfo_unittest.py: 12 (fake_executive): Set a valid return value for sw_vers by default. 13 1 14 2020-09-23 Carlos Garcia Campos <cgarcia@igalia.com> 2 15 -
trunk/Tools/Scripts/webkitpy/common/system/platforminfo.py
r264425 r267508 68 68 69 69 if self.os_name.startswith('mac'): 70 self.os_version = Version.from_string( platform_module.mac_ver()[0])70 self.os_version = Version.from_string(self._executive.run_command(['sw_vers', '-productVersion']).rstrip()) 71 71 elif self.os_name.startswith('win'): 72 72 self.os_version = self._win_version() -
trunk/Tools/Scripts/webkitpy/common/system/platforminfo_unittest.py
r261722 r267508 65 65 if output: 66 66 return MockExecutive2(output=output) 67 return MockExecutive2( exception=SystemError)67 return MockExecutive2(output='10.15.0\n') 68 68 69 69
Note:
See TracChangeset
for help on using the changeset viewer.