Skip to content

Commit

Permalink
Merge pull request #89 from w3c/jgraham/manifest_rebuild
Browse files Browse the repository at this point in the history
Update the manifest file when a version mismatch occurs
  • Loading branch information
jgraham committed Mar 12, 2015
2 parents a86ab86 + 517c661 commit cd49e9e
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions wptrunner/testloader.py
Original file line number Diff line number Diff line change
Expand Up @@ -255,9 +255,13 @@ def update_manifest(self, manifest_path, tests_path, url_base="/",
if not json_data:
manifest_file = manifest.Manifest(None, url_base)
else:
manifest_file = manifest.Manifest.from_json(tests_path, json_data)
try:
manifest_file = manifest.Manifest.from_json(tests_path, json_data)
except manifest.ManifestVersionMismatch:
manifest_file = manifest.Manifest(None, url_base)

manifest_update.update(tests_path, url_base, manifest_file)

manifest_update.update(tests_path, url_base, manifest_file)
manifest.write(manifest_file, manifest_path)

def load_manifest(self, tests_path, metadata_path, url_base="/"):
Expand Down

0 comments on commit cd49e9e

Please sign in to comment.