From ee766b5e162cb4b151d58d8b8b36a528a3ea604e Mon Sep 17 00:00:00 2001 From: Alan Jeffrey Date: Wed, 6 Dec 2017 21:53:34 -0600 Subject: Add a --date option to test-perf. --- python/servo/testing_commands.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'python/servo/testing_commands.py') diff --git a/python/servo/testing_commands.py b/python/servo/testing_commands.py index a72b6ef8f70..60839938465 100644 --- a/python/servo/testing_commands.py +++ b/python/servo/testing_commands.py @@ -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, -- cgit v1.2.3