mirror of
https://github.com/servo/servo.git
synced 2025-06-08 16:43:28 +00:00
Refactor python/tidy.py to not use globals. Fixes #3242
This commit is contained in:
parent
523270c265
commit
6c48066565
2 changed files with 65 additions and 66 deletions
|
@ -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',
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue