diff options
author | bors-servo <lbergstrom+bors@mozilla.com> | 2016-02-25 22:36:21 +0530 |
---|---|---|
committer | bors-servo <lbergstrom+bors@mozilla.com> | 2016-02-25 22:36:21 +0530 |
commit | 553cf3d8e8dfc5eb1222fc48b507d6578da6bc66 (patch) | |
tree | 23b12a149e26b4b22113348f1180814af8cc9532 /python/servo | |
parent | b188cb542e92f3490b049e8db8473c7e2acf6dc9 (diff) | |
parent | 78a966c54754355d13e48edf358da7871210dd2c (diff) | |
download | servo-553cf3d8e8dfc5eb1222fc48b507d6578da6bc66.tar.gz servo-553cf3d8e8dfc5eb1222fc48b507d6578da6bc66.zip |
Auto merge of #9649 - Wafflespeanut:tidy_progress, r=jdm
Refactoring tidy...
Improved tidy's code for efficiency (which now shows progress while checking through files)
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.svg" height="40" alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/9649)
<!-- Reviewable:end -->
Diffstat (limited to 'python/servo')
-rw-r--r-- | python/servo/testing_commands.py | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/python/servo/testing_commands.py b/python/servo/testing_commands.py index 5e55ca18925..e0e25c161d5 100644 --- a/python/servo/testing_commands.py +++ b/python/servo/testing_commands.py @@ -94,10 +94,12 @@ class MachCommands(CommandBase): @CommandArgument('--release', default=False, action="store_true", help="Run with a release build of servo") @CommandArgument('--faster', default=False, action="store_true", - help="Only check changed files and skip the WPT lint") - def test(self, params, render_mode=DEFAULT_RENDER_MODE, release=False, faster=False): + help="Only check changed files and skip the WPT lint in tidy") + @CommandArgument('--no-progress', default=False, action="store_true", + help="Don't show progress for tidy") + def test(self, params, render_mode=DEFAULT_RENDER_MODE, release=False, faster=False, no_progress=False): suites = OrderedDict([ - ("tidy", {"kwargs": {"faster": faster}, + ("tidy", {"kwargs": {"faster": faster, "no_progress": no_progress}, "include_arg": "include"}), ("ref", {"kwargs": {"kind": render_mode}, "paths": [path.abspath(path.join("tests", "ref"))], @@ -292,9 +294,11 @@ class MachCommands(CommandBase): description='Run the source code tidiness check', category='testing') @CommandArgument('--faster', default=False, action="store_true", - help="Only check changed files and skip the WPT lint") - def test_tidy(self, faster): - return tidy.scan(faster) + help="Only check changed files and skip the WPT lint in tidy") + @CommandArgument('--no-progress', default=False, action="store_true", + help="Don't show progress for tidy") + def test_tidy(self, faster, no_progress): + return tidy.scan(faster, not no_progress) @Command('test-webidl', description='Run the WebIDL parser tests', |