aboutsummaryrefslogtreecommitdiffstats
path: root/python/servo/testing_commands.py
diff options
context:
space:
mode:
authorbors-servo <lbergstrom+bors@mozilla.com>2017-12-12 13:52:59 -0600
committerGitHub <noreply@github.com>2017-12-12 13:52:59 -0600
commitb93579a8f0e59c8102a243133455d8012e82e415 (patch)
tree934ae7a6d4eadebaae85b56d58a6b4a5602eeea6 /python/servo/testing_commands.py
parent80341b291b3c1f0d423d8b8ab4eb8b1e78e03f2a (diff)
parentee766b5e162cb4b151d58d8b8b36a528a3ea604e (diff)
downloadservo-b93579a8f0e59c8102a243133455d8012e82e415.tar.gz
servo-b93579a8f0e59c8102a243133455d8012e82e415.zip
Auto merge of #19507 - asajeffrey:test-perf-date-option, r=avadacatavra
Add a --date option to test-perf. <!-- Please describe your changes on the following line: --> To generate old test-perf results, we need a way to set the date when running `./mach test-perf`. --- <!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `__` with appropriate data: --> - [X] `./mach build -d` does not report any errors - [X] `./mach test-tidy` does not report any errors - [X] These changes do not require tests because they're test infrastructure <!-- Also, please make sure that "Allow edits from maintainers" checkbox is checked, so that we can help you if you get stuck somewhere along the way.--> <!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. --> <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/19507) <!-- Reviewable:end -->
Diffstat (limited to 'python/servo/testing_commands.py')
-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 e0b9a4e7b28..de77c85c285 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,