mirror of
https://github.com/servo/servo.git
synced 2025-06-24 00:54:32 +01:00
Merge pull request #3263 from duncankl/refactor-test-tidy
Refactor python/tidy.py (updated post-cargoify)
This commit is contained in:
commit
3924652aa3
3 changed files with 81 additions and 101 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