diff options
author | Duncan Keall <duncan@duncankeall.com> | 2014-09-09 11:49:35 +1200 |
---|---|---|
committer | Duncan Keall <duncan@duncankeall.com> | 2014-09-10 10:01:46 +1200 |
commit | 6c48066565f84a57340e954e82448088380360ce (patch) | |
tree | 4c0237305d23ef7cc1de7028f9479172bd77ee33 /python/servo/testing_commands.py | |
parent | 523270c265094d7f7668459c6de13e01047faeb6 (diff) | |
download | servo-6c48066565f84a57340e954e82448088380360ce.tar.gz servo-6c48066565f84a57340e954e82448088380360ce.zip |
Refactor python/tidy.py to not use globals. Fixes #3242
Diffstat (limited to 'python/servo/testing_commands.py')
-rw-r--r-- | python/servo/testing_commands.py | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/python/servo/testing_commands.py b/python/servo/testing_commands.py index 19ecc4ef4cf..e9e46c30c69 100644 --- a/python/servo/testing_commands.py +++ b/python/servo/testing_commands.py @@ -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', |