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:
Gregory Mierzwinski 2019-08-23 13:11:48 +00:00
parent 9cb9ef74ee
commit ee3fe5c6dc

View File

@ -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)