diff options
author | Daan Sprenkels <dsprenkels@gmail.com> | 2016-01-01 17:19:37 +0100 |
---|---|---|
committer | Daan Sprenkels <dsprenkels@gmail.com> | 2016-01-07 16:28:13 +0100 |
commit | a9b8d47d5d4f1c9cea0dec151753cb18fd32b24e (patch) | |
tree | d873b7b03425ecca392bf417f044a8d0bba3670b /python/servo/testing_commands.py | |
parent | b8e7cd71d6aada507a7eab1ddad44181b0d2d029 (diff) | |
download | servo-a9b8d47d5d4f1c9cea0dec151753cb18fd32b24e.tar.gz servo-a9b8d47d5d4f1c9cea0dec151753cb18fd32b24e.zip |
add a --faster option to ./mach test-tidy
which will
- only check files changed since the last merge by bors
- and skip the wpt-lint
Diffstat (limited to 'python/servo/testing_commands.py')
-rw-r--r-- | python/servo/testing_commands.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/python/servo/testing_commands.py b/python/servo/testing_commands.py index 73fac648b76..873627c61d5 100644 --- a/python/servo/testing_commands.py +++ b/python/servo/testing_commands.py @@ -256,8 +256,10 @@ class MachCommands(CommandBase): @Command('test-tidy', description='Run the source code tidiness check', category='testing') - def test_tidy(self): - return tidy.scan() + @CommandArgument('--faster', default=False, action="store_true", + help="Only check changed files and skip the WPT lint") + def test_tidy(self, faster): + return tidy.scan(faster) @Command('test-wpt-failure', description='Run the web platform tests', |