| OLD | NEW |
| 1 # Copyright (c) 2010, Google Inc. All rights reserved. | 1 # Copyright (c) 2010, Google Inc. All rights reserved. |
| 2 # | 2 # |
| 3 # Redistribution and use in source and binary forms, with or without | 3 # Redistribution and use in source and binary forms, with or without |
| 4 # modification, are permitted provided that the following conditions are | 4 # modification, are permitted provided that the following conditions are |
| 5 # met: | 5 # met: |
| 6 # | 6 # |
| 7 # * Redistributions of source code must retain the above copyright | 7 # * Redistributions of source code must retain the above copyright |
| 8 # notice, this list of conditions and the following disclaimer. | 8 # notice, this list of conditions and the following disclaimer. |
| 9 # * Redistributions in binary form must reproduce the above | 9 # * Redistributions in binary form must reproduce the above |
| 10 # copyright notice, this list of conditions and the following disclaimer | 10 # copyright notice, this list of conditions and the following disclaimer |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 43 | 43 |
| 44 def chromium_results_url_base_for_builder(builder_name): | 44 def chromium_results_url_base_for_builder(builder_name): |
| 45 return '%s/%s' % (chromium_results_url_base(), re.sub('[ .()]', '_', builder
_name)) | 45 return '%s/%s' % (chromium_results_url_base(), re.sub('[ .()]', '_', builder
_name)) |
| 46 | 46 |
| 47 | 47 |
| 48 def chromium_results_zip_url(builder_name): | 48 def chromium_results_zip_url(builder_name): |
| 49 return chromium_results_url_base_for_builder(builder_name) + '/results/layou
t-test-results.zip' | 49 return chromium_results_url_base_for_builder(builder_name) + '/results/layou
t-test-results.zip' |
| 50 | 50 |
| 51 | 51 |
| 52 def chromium_accumulated_results_url_base_for_builder(builder_name): | 52 def chromium_accumulated_results_url_base_for_builder(builder_name): |
| 53 # FIXME: The duplicate directory is due to crbug.com/285572. | 53 return chromium_results_url_base_for_builder(builder_name) + "/results/layou
t-test-results" |
| 54 return chromium_results_url_base_for_builder(builder_name) + "/results/layou
t-test-results/layout-test-results" | |
| 55 | 54 |
| 56 | 55 |
| 57 chromium_lkgr_url = "http://chromium-status.appspot.com/lkgr" | 56 chromium_lkgr_url = "http://chromium-status.appspot.com/lkgr" |
| 58 contribution_guidelines = "http://webkit.org/coding/contributing.html" | 57 contribution_guidelines = "http://webkit.org/coding/contributing.html" |
| 59 | 58 |
| 60 bug_server_domain = "webkit.org" | 59 bug_server_domain = "webkit.org" |
| 61 bug_server_host = "bugs." + bug_server_domain | 60 bug_server_host = "bugs." + bug_server_domain |
| 62 _bug_server_regex = "https?://%s/" % re.sub('\.', '\\.', bug_server_host) | 61 _bug_server_regex = "https?://%s/" % re.sub('\.', '\\.', bug_server_host) |
| 63 bug_server_url = "https://%s/" % bug_server_host | 62 bug_server_url = "https://%s/" % bug_server_host |
| 64 bug_url_long = _bug_server_regex + r"show_bug\.cgi\?id=(?P<bug_id>\d+)(&ctype=xm
l|&excludefield=attachmentdata)*" | 63 bug_url_long = _bug_server_regex + r"show_bug\.cgi\?id=(?P<bug_id>\d+)(&ctype=xm
l|&excludefield=attachmentdata)*" |
| (...skipping 24 matching lines...) Expand all Loading... |
| 89 def parse_attachment_id(string): | 88 def parse_attachment_id(string): |
| 90 if not string: | 89 if not string: |
| 91 return None | 90 return None |
| 92 match = re.search(attachment_url, string) | 91 match = re.search(attachment_url, string) |
| 93 if match: | 92 if match: |
| 94 return int(match.group('attachment_id')) | 93 return int(match.group('attachment_id')) |
| 95 match = re.search(direct_attachment_url, string) | 94 match = re.search(direct_attachment_url, string) |
| 96 if match: | 95 if match: |
| 97 return int(match.group('attachment_id')) | 96 return int(match.group('attachment_id')) |
| 98 return None | 97 return None |
| OLD | NEW |