Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(76)

Side by Side Diff: third_party/WebKit/Tools/Scripts/webkitpy/layout_tests/layout_package/bot_test_expectations.py

Issue 2710493003: Update HTTP-references to test-results to use HTTPS (Closed)
Patch Set: Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 # Copyright (C) 2013 Google Inc. All rights reserved. 1 # Copyright (C) 2013 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 93 matching lines...) Expand 10 before | Expand all | Expand 10 after
104 return self._json[self.builder_name][self.FAILURE_MAP_KEY][type_char] 104 return self._json[self.builder_name][self.FAILURE_MAP_KEY][type_char]
105 105
106 # Knowing how to parse the run-length-encoded values in results.json 106 # Knowing how to parse the run-length-encoded values in results.json
107 # is a detail of this class. 107 # is a detail of this class.
108 def occurances_and_type_from_result_item(self, item): 108 def occurances_and_type_from_result_item(self, item):
109 return item[self.RLE_LENGTH], item[self.RLE_VALUE] 109 return item[self.RLE_LENGTH], item[self.RLE_VALUE]
110 110
111 111
112 class BotTestExpectationsFactory(object): 112 class BotTestExpectationsFactory(object):
113 RESULTS_URL_PREFIX = ( 113 RESULTS_URL_PREFIX = (
114 'http://test-results.appspot.com/testfile?master=chromium.webkit&' 114 'https://test-results.appspot.com/testfile?master=chromium.webkit&'
115 'testtype=webkit_tests&name=results-small.json&builder=') 115 'testtype=webkit_tests&name=results-small.json&builder=')
116 116
117 def __init__(self, builders): 117 def __init__(self, builders):
118 self.builders = builders 118 self.builders = builders
119 119
120 def _results_json_for_port(self, port_name, builder_category): 120 def _results_json_for_port(self, port_name, builder_category):
121 builder = self.builders.builder_name_for_port_name(port_name) 121 builder = self.builders.builder_name_for_port_name(port_name)
122 if not builder: 122 if not builder:
123 return None 123 return None
124 return self._results_json_for_builder(builder) 124 return self._results_json_for_builder(builder)
(...skipping 204 matching lines...) Expand 10 before | Expand all | Expand 10 after
329 # The only thing we lose by not fixing this is that a test that was flaky 329 # The only thing we lose by not fixing this is that a test that was flaky
330 # and got fixed will still get printed out until 100 runs have p assed. 330 # and got fixed will still get printed out until 100 runs have p assed.
331 if not TestExpectations.result_was_expected(result_enum, latest_ expectations, test_needs_rebaselining=False): 331 if not TestExpectations.result_was_expected(result_enum, latest_ expectations, test_needs_rebaselining=False):
332 has_unexpected_results = True 332 has_unexpected_results = True
333 break 333 break
334 334
335 if has_unexpected_results: 335 if has_unexpected_results:
336 flaky_results = flaky_results.union(set(result_types)) 336 flaky_results = flaky_results.union(set(result_types))
337 337
338 return flaky_results 338 return flaky_results
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698