Add --base option to test-perf.

This commit is contained in:
Alan Jeffrey 2017-11-13 18:50:28 -06:00
parent 657b2339a1
commit 109df3328a
6 changed files with 91 additions and 31 deletions

View file

@ -173,14 +173,18 @@ class MachCommands(CommandBase):
@Command('test-perf',
description='Run the page load performance test',
category='testing')
@CommandArgument('--submit', default=False, action="store_true",
@CommandArgument('--base', default=None,
help="the base URL for testcases")
@CommandArgument('-submit', '-a', default=False, action="store_true",
help="submit the data to perfherder")
def test_perf(self, submit=False):
def test_perf(self, base=None, submit=False):
self.set_software_rendering_env(True)
self.ensure_bootstrapped()
env = self.build_env()
cmd = ["bash", "test_perf.sh"]
if base:
cmd += ["--base", base]
if submit:
if not ("TREEHERDER_CLIENT_ID" in os.environ and
"TREEHERDER_CLIENT_SECRET" in os.environ):