diff options
author | Ravi Shankar <wafflespeanut@gmail.com> | 2016-02-21 19:38:43 +0530 |
---|---|---|
committer | Ravi Shankar <wafflespeanut@gmail.com> | 2016-02-25 13:07:29 +0530 |
commit | 78a966c54754355d13e48edf358da7871210dd2c (patch) | |
tree | 8c7e29740c72a59f72c824f605d3b6f9ba9c9d7d /python/servo/testing_commands.py | |
parent | 3f74c07e2025671d867e94acd28e706ce6fe236e (diff) | |
download | servo-78a966c54754355d13e48edf358da7871210dd2c.tar.gz servo-78a966c54754355d13e48edf358da7871210dd2c.zip |
Refactored tidy for efficiency and optionally provide feedback on progress
Diffstat (limited to 'python/servo/testing_commands.py')
-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', |