Commit 6bf68dc3 authored by nednguyen's avatar nednguyen Committed by Commit Bot

Convert dromaeo.cssqueryjquery to use .wprgo format


THis also fix the regex of finding .wpr files in json archives list

Bug: 730036
Change-Id: Iea0d1cd53caa4a45d293940a345dfa9e66737e63
Reviewed-on: https://chromium-review.googlesource.com/596589
Commit-Queue: Ned Nguyen <nednguyen@google.com>
Reviewed-by: default avatarHelen Li <xunjieli@chromium.org>
Cr-Commit-Position: refs/heads/master@{#491212}
parent a1ea2b79
...@@ -75,7 +75,7 @@ def upload(page_sets_json_file, bucket): ...@@ -75,7 +75,7 @@ def upload(page_sets_json_file, bucket):
count = 0 count = 0
with open(page_sets_json_file, 'r+') as json_file: with open(page_sets_json_file, 'r+') as json_file:
content = json_file.read() content = json_file.read()
m = re.findall(r'"(\w*).wprgo"', content) m = re.findall(r'"([a-zA-Z0-9_\.]+).wprgo"', content)
if not m: if not m:
raise Exception("No .wprgo files to upload in ", page_sets_json_file) raise Exception("No .wprgo files to upload in ", page_sets_json_file)
# get rid of duplicates. # get rid of duplicates.
...@@ -153,7 +153,7 @@ def main(): ...@@ -153,7 +153,7 @@ def main():
py_utils.GetHostOsName()) py_utils.GetHostOsName())
with open(page_sets_json_file, 'r+') as json_file: with open(page_sets_json_file, 'r+') as json_file:
content = json_file.read() content = json_file.read()
m = re.findall(r'"(\w*).wpr"', content) m = re.findall(r'"([a-zA-Z0-9_\.]+).wpr"', content)
if not m: if not m:
raise Exception("No .wpr files found in ", page_sets_json_file) raise Exception("No .wpr files found in ", page_sets_json_file)
# get rid of duplicates. # get rid of duplicates.
......
{ {
"archives": { "archives": {
"http://dromaeo.com?cssquery-jquery": { "http://dromaeo.com?cssquery-jquery": {
"DEFAULT": "dromaeo.cssqueryjquery_000.wpr" "DEFAULT": "dromaeo.cssqueryjquery_000.wprgo"
} }
}, },
"description": "Describes the Web Page Replay archives for a story set. Don't edit by hand! Use record_wpr for updating.", "description": "Describes the Web Page Replay archives for a story set. Don't edit by hand! Use record_wpr for updating.",
......
026ae24c308db12914d1b6652fc65d2cfd496dc0
\ No newline at end of file
4a94eb6c006ddbec049bea88a2ccd10a807486db
\ No newline at end of file
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment