mirror of
https://github.com/servo/servo.git
synced 2025-06-08 16:43:28 +00:00
Add --base option to test-perf.
This commit is contained in:
parent
657b2339a1
commit
109df3328a
6 changed files with 91 additions and 31 deletions
|
@ -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):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue