Add a --date option to test-perf.

This commit is contained in:
Alan Jeffrey 2017-12-06 21:53:34 -06:00
parent 6aae59e7e5
commit ee766b5e16
4 changed files with 29 additions and 14 deletions

View file

@ -171,9 +171,11 @@ class MachCommands(CommandBase):
category='testing')
@CommandArgument('--base', default=None,
help="the base URL for testcases")
@CommandArgument('--date', default=None,
help="the datestamp for the data")
@CommandArgument('--submit', '-a', default=False, action="store_true",
help="submit the data to perfherder")
def test_perf(self, base=None, submit=False):
def test_perf(self, base=None, date=None, submit=False):
self.set_software_rendering_env(True)
self.ensure_bootstrapped()
@ -181,6 +183,8 @@ class MachCommands(CommandBase):
cmd = ["bash", "test_perf.sh"]
if base:
cmd += ["--base", base]
if date:
cmd += ["--date", date]
if submit:
cmd += ["--submit"]
return call(cmd,