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
This commit is contained in:
Daan Sprenkels 2016-01-01 17:19:37 +01:00
parent b8e7cd71d6
commit a9b8d47d5d
2 changed files with 32 additions and 9 deletions

View file

@ -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',