aboutsummaryrefslogtreecommitdiffstats
path: root/python/servo/testing_commands.py
diff options
context:
space:
mode:
authorManish Goregaokar <manishsmail@gmail.com>2017-01-04 20:57:27 -0800
committerManish Goregaokar <manishsmail@gmail.com>2017-02-08 21:56:55 -0800
commitb60368d5d9bebbc26a6cc625853e14b0c7db05be (patch)
treeed30dd3d8722ce8458c77ba16c9ecb8539b15645 /python/servo/testing_commands.py
parentcbfd4464270f8690b90b9b96c395523a3a39e2de (diff)
downloadservo-b60368d5d9bebbc26a6cc625853e14b0c7db05be.tar.gz
servo-b60368d5d9bebbc26a6cc625853e14b0c7db05be.zip
Tidy checks for stylo
Diffstat (limited to 'python/servo/testing_commands.py')
-rw-r--r--python/servo/testing_commands.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/python/servo/testing_commands.py b/python/servo/testing_commands.py
index 7c8be361801..2417483c4df 100644
--- a/python/servo/testing_commands.py
+++ b/python/servo/testing_commands.py
@@ -381,11 +381,13 @@ class MachCommands(CommandBase):
help="Don't show progress for tidy")
@CommandArgument('--self-test', default=False, action="store_true",
help="Run unit tests for tidy")
- def test_tidy(self, all_files, no_progress, self_test):
+ @CommandArgument('--stylo', default=False, action="store_true",
+ help="Only handle files in the stylo tree")
+ def test_tidy(self, all_files, no_progress, self_test, stylo):
if self_test:
return test_tidy.do_tests()
else:
- return tidy.scan(not all_files, not no_progress)
+ return tidy.scan(not all_files, not no_progress, stylo=stylo)
@Command('test-webidl',
description='Run the WebIDL parser tests',