diff options
author | Josh Matthews <josh@joshmatthews.net> | 2018-03-16 02:09:48 -0400 |
---|---|---|
committer | Josh Matthews <josh@joshmatthews.net> | 2018-03-16 02:17:49 -0400 |
commit | 8b378120a4cb39efcc22a4b227fbec15c1b25d63 (patch) | |
tree | 7a83962751c4a72e4d6785a9b0554beba4cb7a91 /python/servo/testing_commands.py | |
parent | 5f408422941b87e936880074f99a69fbdeebd131 (diff) | |
download | servo-8b378120a4cb39efcc22a4b227fbec15c1b25d63.tar.gz servo-8b378120a4cb39efcc22a4b227fbec15c1b25d63.zip |
Avoid using WPT test runner to update the test manifest.
Diffstat (limited to 'python/servo/testing_commands.py')
-rw-r--r-- | python/servo/testing_commands.py | 19 |
1 files changed, 15 insertions, 4 deletions
diff --git a/python/servo/testing_commands.py b/python/servo/testing_commands.py index 8ed67964bab..cac5531d8f4 100644 --- a/python/servo/testing_commands.py +++ b/python/servo/testing_commands.py @@ -77,6 +77,19 @@ def create_parser_wpt(): return parser +def create_parser_manifest_update(): + import manifestupdate + return manifestupdate.create_parser() + + +def run_update(topdir, check_clean=False, rebuild=False, **kwargs): + import manifestupdate + from wptrunner import wptlogging + logger = wptlogging.setup(kwargs, {"mach": sys.stdout}) + wpt_dir = os.path.abspath(os.path.join(topdir, 'tests', 'wpt')) + manifestupdate.update(logger, wpt_dir, check_clean, rebuild) + + @CommandProvider class MachCommands(CommandBase): DEFAULT_RENDER_MODE = "cpu" @@ -429,11 +442,9 @@ class MachCommands(CommandBase): @Command('update-manifest', description='Run test-wpt --manifest-update SKIP_TESTS to regenerate MANIFEST.json', category='testing', - parser=create_parser_wpt) + parser=create_parser_manifest_update) def update_manifest(self, **kwargs): - kwargs['test_list'].append(str('SKIP_TESTS')) - kwargs['manifest_update'] = True - return self.test_wpt(**kwargs) + return run_update(self.context.topdir, **kwargs) @Command('update-wpt', description='Update the web platform tests', |