aboutsummaryrefslogtreecommitdiffstats
path: root/python/servo/testing_commands.py
diff options
context:
space:
mode:
authorapopiak <alexander.popiak@gmail.com>2016-01-12 14:34:23 +0100
committerapopiak <alexander.popiak@gmail.com>2016-01-13 16:48:38 +0100
commitf34d2a53c8c5f6457ae7c85cc707abda1cb7cc90 (patch)
tree76909365039f5b1e68c107e7f8931ac227591d66 /python/servo/testing_commands.py
parent6b1e73c1c0cf3fe2c935df0de667145bc6130461 (diff)
downloadservo-f34d2a53c8c5f6457ae7c85cc707abda1cb7cc90.tar.gz
servo-f34d2a53c8c5f6457ae7c85cc707abda1cb7cc90.zip
add `faster` flag to `./mach test` command in order to call `test-tidy` properly
Diffstat (limited to 'python/servo/testing_commands.py')
-rw-r--r--python/servo/testing_commands.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/python/servo/testing_commands.py b/python/servo/testing_commands.py
index 873627c61d5..875137ff536 100644
--- a/python/servo/testing_commands.py
+++ b/python/servo/testing_commands.py
@@ -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"}),