Changeset 263610 in webkit
- Timestamp:
- Jun 26, 2020, 9:37:12 PM (5 years ago)
- Location:
- trunk/Tools
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Tools/ChangeLog
r263592 r263610 1 2020-06-26 Jonathan Bedard <jbedard@apple.com> 2 3 [webkitpy] Allow callers to override the reported model (Part 1) 4 https://bugs.webkit.org/show_bug.cgi?id=213677 5 <rdar://problem/64834043> 6 7 Reviewed by Dewei Zhu. 8 9 * Scripts/webkitpy/port/base.py: 10 (Port.configuration_for_upload): Set the model based on --model. 11 * Scripts/webkitpy/port/factory.py: 12 (configuration_options): Add --model option, drive-by fix for --architecture. 13 * Scripts/webkitpy/port/mac.py: 14 (MacPort.configuration_for_upload): --model overrides detected model. 15 1 16 2020-06-26 Jonathan Bedard <jbedard@apple.com> 2 17 -
trunk/Tools/Scripts/webkitpy/port/base.py
r263592 r263610 1579 1579 sdk=host.platform.build_version(), 1580 1580 flavor=self.get_option('result_report_flavor'), 1581 model=self.get_option('model'), 1581 1582 ) 1582 1583 -
trunk/Tools/Scripts/webkitpy/port/factory.py
r263592 r263610 88 88 optparse.make_option('--arm', action='store_const', const='arm64e', default=None, dest="architecture", 89 89 help='Use arm64e binaries by default'), 90 optparse.make_option('--architecture', action='store _const', const='x86', default=None, dest="architecture",90 optparse.make_option('--architecture', action='store', default=None, dest="architecture", 91 91 help='Use binaries of the specified architecture by default.'), 92 # FIXME https://bugs.webkit.org/213677: This should effect the models used by simulator ports 93 optparse.make_option('--model', action='store', default=None, dest="model", 94 help='Override the model details on upload.'), 92 95 ] 93 96 -
trunk/Tools/Scripts/webkitpy/port/mac.py
r263592 r263610 293 293 configuration = super(MacPort, self).configuration_for_upload(host=host) 294 294 295 output = host.executive.run_command(['/usr/sbin/sysctl', 'hw.model']).rstrip() 296 match = re.match(r'hw.model: (?P<model>.*)', output) 297 if match: 298 configuration['model'] = match.group('model') 295 # --model should override the detected model 296 if not configuration.get('model'): 297 output = host.executive.run_command(['/usr/sbin/sysctl', 'hw.model']).rstrip() 298 match = re.match(r'hw.model: (?P<model>.*)', output) 299 if match: 300 configuration['model'] = match.group('model') 299 301 300 302 return configuration
Note:
See TracChangeset
for help on using the changeset viewer.