aboutsummaryrefslogtreecommitdiffstats
path: root/python
diff options
context:
space:
mode:
authorAlan Jeffrey <ajeffrey@mozilla.com>2017-12-06 21:53:34 -0600
committerAlan Jeffrey <ajeffrey@mozilla.com>2017-12-06 21:57:08 -0600
commitee766b5e162cb4b151d58d8b8b36a528a3ea604e (patch)
tree2c4a5a58e6fe17bc3bc820a7614ca3c81fce165c /python
parent6aae59e7e50531f45d78495cf07970001ef05f86 (diff)
downloadservo-ee766b5e162cb4b151d58d8b8b36a528a3ea604e.tar.gz
servo-ee766b5e162cb4b151d58d8b8b36a528a3ea604e.zip
Add a --date option to test-perf.
Diffstat (limited to 'python')
-rw-r--r--python/servo/testing_commands.py6
1 files changed, 5 insertions, 1 deletions
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,