mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-22 01:35:35 +00:00
Bug 1574574 - Add support to invoke raptor with 'mach raptor'. r=perftest-reviewers,rwood,stephendonner
This patch adds support for using `./mach raptor` instead of `./mach raptor-test`. The old version is left for backwards compatibility. Differential Revision: https://phabricator.services.mozilla.com/D43051 --HG-- extra : moz-landing-system : lando
This commit is contained in:
parent
9cb9ef74ee
commit
ee3fe5c6dc
@ -201,10 +201,10 @@ def create_parser():
|
||||
|
||||
@CommandProvider
|
||||
class MachRaptor(MachCommandBase):
|
||||
@Command('raptor-test', category='testing',
|
||||
description='Run raptor performance tests.',
|
||||
@Command('raptor', category='testing',
|
||||
description='Run Raptor performance tests.',
|
||||
parser=create_parser)
|
||||
def run_raptor_test(self, **kwargs):
|
||||
def run_raptor(self, **kwargs):
|
||||
build_obj = self
|
||||
|
||||
is_android = Conditions.is_android(build_obj) or \
|
||||
@ -251,3 +251,9 @@ class MachRaptor(MachCommandBase):
|
||||
adbhost.command_output(["disconnect", device_serial])
|
||||
except Exception:
|
||||
adbhost.command_output(["kill-server"])
|
||||
|
||||
@Command('raptor-test', category='testing',
|
||||
description='Run Raptor performance tests.',
|
||||
parser=create_parser)
|
||||
def run_raptor_test(self, **kwargs):
|
||||
return self.run_raptor(**kwargs)
|
||||
|
Loading…
Reference in New Issue
Block a user