diff options
author | Manish Goregaokar <manishsmail@gmail.com> | 2017-01-04 20:57:27 -0800 |
---|---|---|
committer | Manish Goregaokar <manishsmail@gmail.com> | 2017-02-08 21:56:55 -0800 |
commit | b60368d5d9bebbc26a6cc625853e14b0c7db05be (patch) | |
tree | ed30dd3d8722ce8458c77ba16c9ecb8539b15645 /python/servo | |
parent | cbfd4464270f8690b90b9b96c395523a3a39e2de (diff) | |
download | servo-b60368d5d9bebbc26a6cc625853e14b0c7db05be.tar.gz servo-b60368d5d9bebbc26a6cc625853e14b0c7db05be.zip |
Tidy checks for stylo
Diffstat (limited to 'python/servo')
-rw-r--r-- | python/servo/lints/wpt_lint.py | 2 | ||||
-rw-r--r-- | python/servo/testing_commands.py | 6 |
2 files changed, 6 insertions, 2 deletions
diff --git a/python/servo/lints/wpt_lint.py b/python/servo/lints/wpt_lint.py index ba72a908a50..2160e6d557d 100644 --- a/python/servo/lints/wpt_lint.py +++ b/python/servo/lints/wpt_lint.py @@ -26,6 +26,8 @@ class Lint(LintRunner): yield f[len(working_dir):] def run(self): + if self.stylo: + return wpt_working_dir = os.path.abspath(os.path.join(WPT_PATH, "web-platform-tests")) for suite in SUITES: files = self._get_wpt_files(suite) diff --git a/python/servo/testing_commands.py b/python/servo/testing_commands.py index 7c8be361801..2417483c4df 100644 --- a/python/servo/testing_commands.py +++ b/python/servo/testing_commands.py @@ -381,11 +381,13 @@ class MachCommands(CommandBase): help="Don't show progress for tidy") @CommandArgument('--self-test', default=False, action="store_true", help="Run unit tests for tidy") - def test_tidy(self, all_files, no_progress, self_test): + @CommandArgument('--stylo', default=False, action="store_true", + help="Only handle files in the stylo tree") + def test_tidy(self, all_files, no_progress, self_test, stylo): if self_test: return test_tidy.do_tests() else: - return tidy.scan(not all_files, not no_progress) + return tidy.scan(not all_files, not no_progress, stylo=stylo) @Command('test-webidl', description='Run the WebIDL parser tests', |