mirror of
https://github.com/servo/servo.git
synced 2025-06-22 08:08:59 +01:00
add faster
flag to ./mach test
command in order to call test-tidy
properly
This commit is contained in:
parent
6b1e73c1c0
commit
f34d2a53c8
1 changed files with 5 additions and 2 deletions
|
@ -90,9 +90,12 @@ class MachCommands(CommandBase):
|
|||
HELP_RENDER_MODE)
|
||||
@CommandArgument('--release', default=False, action="store_true",
|
||||
help="Run with a release build of servo")
|
||||
def test(self, params, render_mode=DEFAULT_RENDER_MODE, release=False):
|
||||
@CommandArgument('--faster', default=False, action="store_true",
|
||||
help="Only check changed files and skip the WPT lint")
|
||||
def test(self, params, render_mode=DEFAULT_RENDER_MODE, release=False, faster=False):
|
||||
suites = OrderedDict([
|
||||
("tidy", {}),
|
||||
("tidy", {"kwargs": {"faster": faster},
|
||||
"include_arg": "include"}),
|
||||
("ref", {"kwargs": {"kind": render_mode},
|
||||
"paths": [path.abspath(path.join("tests", "ref"))],
|
||||
"include_arg": "include"}),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue