Merge pull request #3263 from duncankl/refactor-test-tidy

Refactor python/tidy.py (updated post-cargoify)
This commit is contained in:
Jack Moffitt 2014-09-09 22:46:34 -06:00
commit 3924652aa3
3 changed files with 81 additions and 101 deletions

View file

@ -105,11 +105,7 @@ class MachCommands(CommandBase):
description='Run the source code tidiness check',
category='testing')
def test_tidy(self):
errors = 0
for p in ["src", "components"]:
ret = tidy.scan(path.join(self.context.topdir, p))
if ret != 0: errors = 1
return errors
return tidy.scan()
@Command('test-wpt',
description='Run the web platform tests',