Skip to content

Commit

Permalink
add update-manifest command
Browse files Browse the repository at this point in the history
  • Loading branch information
ddefisher committed Jun 7, 2016
1 parent c017438 commit 04b062b
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 0 deletions.
9 changes: 9 additions & 0 deletions python/servo/testing_commands.py
Expand Up @@ -334,6 +334,15 @@ def wptrunner(self, run_file, **kwargs):
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',
Expand Down
12 changes: 12 additions & 0 deletions tests/wpt/README.md
Expand Up @@ -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

0 comments on commit 04b062b

Please sign in to comment.