mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 975442: recognize as emulator if device name begins with 'emulator'. r=jgriffin
This commit is contained in:
parent
93417f2cb3
commit
9fba03c823
@ -364,7 +364,7 @@ class MachCommands(MachCommandBase):
|
|||||||
# they should be modified to work with all devices.
|
# they should be modified to work with all devices.
|
||||||
def is_emulator(cls):
|
def is_emulator(cls):
|
||||||
"""Emulator needs to be configured."""
|
"""Emulator needs to be configured."""
|
||||||
return cls.device_name in ('emulator', 'emulator-jb')
|
return cls.device_name.find('emulator') == 0
|
||||||
|
|
||||||
|
|
||||||
@CommandProvider
|
@CommandProvider
|
||||||
|
@ -77,7 +77,7 @@ class B2GCommands(MachCommandBase):
|
|||||||
@CommandArgument('tests', nargs='*', metavar='TESTS',
|
@CommandArgument('tests', nargs='*', metavar='TESTS',
|
||||||
help='Path to test(s) to run.')
|
help='Path to test(s) to run.')
|
||||||
def run_marionette_webapi(self, tests, emulator=None, testtype=None):
|
def run_marionette_webapi(self, tests, emulator=None, testtype=None):
|
||||||
if not emulator and self.device_name in ('emulator', 'emulator-jb'):
|
if not emulator and self.device_name.find('emulator') == 0:
|
||||||
emulator='arm'
|
emulator='arm'
|
||||||
|
|
||||||
if self.substs.get('ENABLE_MARIONETTE') != '1':
|
if self.substs.get('ENABLE_MARIONETTE') != '1':
|
||||||
|
@ -637,7 +637,7 @@ class MachCommands(MachCommandBase):
|
|||||||
# they should be modified to work with all devices.
|
# they should be modified to work with all devices.
|
||||||
def is_emulator(cls):
|
def is_emulator(cls):
|
||||||
"""Emulator needs to be configured."""
|
"""Emulator needs to be configured."""
|
||||||
return cls.device_name in ('emulator', 'emulator-jb')
|
return cls.device_name.find('emulator') == 0
|
||||||
|
|
||||||
|
|
||||||
@CommandProvider
|
@CommandProvider
|
||||||
|
Loading…
Reference in New Issue
Block a user