diff options
author | bors-servo <infra@servo.org> | 2023-04-07 18:23:07 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-04-07 18:23:07 +0200 |
commit | 2803edd5e1dd045509e3d7ae94a35f98261deacc (patch) | |
tree | 4fbae0f452da83d5aa4ccd46622a4231c7622dad /python/servo | |
parent | 59df8e38569875e316e719fbb5cfb2fe91b66436 (diff) | |
parent | f7168282a1c034b4ff0caee37f97d4b20155f455 (diff) | |
download | servo-2803edd5e1dd045509e3d7ae94a35f98261deacc.tar.gz servo-2803edd5e1dd045509e3d7ae94a35f98261deacc.zip |
Auto merge of #29600 - mrobinson:layout-2020-args, r=jdm
Have all mach command accept "--with-layout-2020" and "--layout-2020"
Some command accepted one and some the other. This changes makes them all accept both so it's no longer necessary to remember which uses which.
<!-- Please describe your changes on the following line: -->
---
<!-- 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 change the arguments accepted by mach.
<!-- 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. -->
Diffstat (limited to 'python/servo')
-rw-r--r-- | python/servo/command_base.py | 4 | ||||
-rw-r--r-- | python/servo/testing_commands.py | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/python/servo/command_base.py b/python/servo/command_base.py index 2ebbdbb9851..7dafcd8c5db 100644 --- a/python/servo/command_base.py +++ b/python/servo/command_base.py @@ -845,8 +845,8 @@ install them, let us know by filing a bug!") action='store_true', help='Build with frame pointer enabled, used by the background hang monitor.', ), - CommandArgument('--with-layout-2020', default=None, action='store_true'), - CommandArgument('--with-layout-2013', default=None, action='store_true'), + CommandArgument('--with-layout-2020', '--layout-2020', default=None, action='store_true'), + CommandArgument('--with-layout-2013', '--layout-2013', default=None, action='store_true'), CommandArgument('--without-wgl', default=None, action='store_true'), ] diff --git a/python/servo/testing_commands.py b/python/servo/testing_commands.py index 0cb20c0127f..9818c5ab20e 100644 --- a/python/servo/testing_commands.py +++ b/python/servo/testing_commands.py @@ -76,8 +76,8 @@ def create_parser_wpt(): help="Run under chaos mode in rr until a failure is captured") parser.add_argument('--pref', default=[], action="append", dest="prefs", help="Pass preferences to servo") - parser.add_argument('--layout-2020', default=False, action="store_true", - help="Use expected results for the 2020 layout engine") + parser.add_argument('--layout-2020', '--with-layout-2020', default=False, + action="store_true", help="Use expected results for the 2020 layout engine") parser.add_argument('--log-servojson', action="append", type=mozlog.commandline.log_file, help="Servo's JSON logger of unexpected results") parser.add_argument('--always-succeed', default=False, action="store_true", |