diff options
author | bors-servo <lbergstrom+bors@mozilla.com> | 2018-03-16 16:16:23 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-03-16 16:16:23 -0400 |
commit | 74d6a91ee55c3bc803cec8c57f9b56e677bd8b97 (patch) | |
tree | fbd52a045df6379f7d0aef14f956f5110b2014d9 /python | |
parent | 1ae5715309ab5acb9ac401fd99f34a0667b2ee53 (diff) | |
parent | 8b378120a4cb39efcc22a4b227fbec15c1b25d63 (diff) | |
download | servo-74d6a91ee55c3bc803cec8c57f9b56e677bd8b97.tar.gz servo-74d6a91ee55c3bc803cec8c57f9b56e677bd8b97.zip |
Auto merge of #20312 - jdm:fix-manifest-update, r=asajeffrey
Avoid using WPT test runner to update the test manifest.
Our old code to update the test manifest relied on running no actual tests. This is now broken by https://github.com/w3c/web-platform-tests/commit/d0a30f8821e50ad1d61fda745453810c8c53a17e#diff-c9390ffce43b4924882faf365b1bf136, so these changes duplicate Firefox's implementation to reduce risk of future breakage. This will allow automated WPT syncing to resume.
---
- [x] `./mach build -d` does not report any errors
- [x] `./mach test-tidy` does not report any errors
- [x] There are tests for these changes
<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/20312)
<!-- Reviewable:end -->
Diffstat (limited to 'python')
-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', |