From 04b062b2fbab458e5594c11216ec7950231c21f5 Mon Sep 17 00:00:00 2001 From: Daniel Date: Mon, 30 May 2016 16:28:22 -0400 Subject: [PATCH] add update-manifest command --- python/servo/testing_commands.py | 9 +++++++++ tests/wpt/README.md | 12 ++++++++++++ 2 files changed, 21 insertions(+) diff --git a/python/servo/testing_commands.py b/python/servo/testing_commands.py index 7a821a08679..4d199818380 100644 --- a/python/servo/testing_commands.py +++ b/python/servo/testing_commands.py @@ -334,6 +334,15 @@ class MachCommands(CommandBase): execfile(run_file, run_globals) return run_globals["run_tests"](**kwargs) + @Command('update-manifest', + description='run test-wpt --manifest-update SKIP_TESTS to regenerate MANIFEST.json', + category='testing', + parser=create_parser_wpt) + def update_manifest(self, **kwargs): + kwargs['test_list'].append(str('SKIP_TESTS')) + kwargs['manifest_update'] = True + return self.test_wpt(**kwargs) + @Command('update-wpt', description='Update the web platform tests', category='testing', diff --git a/tests/wpt/README.md b/tests/wpt/README.md index 362e2208d36..e0aa6406c41 100644 --- a/tests/wpt/README.md +++ b/tests/wpt/README.md @@ -181,3 +181,15 @@ tool written for gecko reftests. The reftest analyzer allows pixel-level comparison of the test and reference screenshots. Tests that both fail and have an unexpected result are marked with a `!`. + +Updating the WPT manifest +========================= + +MANIFEST.json can be regenerated automatically with the mach command `update-manifest` e.g. + + ./mach update-manifest + +This is equivalent to running + + ./mach test-wpt --manifest-update SKIP_TESTS +