mirror of
https://github.com/servo/servo.git
synced 2025-06-08 16:43:28 +00:00
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 -->
This commit is contained in:
commit
b93579a8f0
4 changed files with 29 additions and 14 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue