OLD | NEW |
1 #!/usr/bin/python | 1 #!/usr/bin/python |
2 | 2 |
3 """ | 3 """ |
4 Copyright 2013 Google Inc. | 4 Copyright 2013 Google Inc. |
5 | 5 |
6 Use of this source code is governed by a BSD-style license that can be | 6 Use of this source code is governed by a BSD-style license that can be |
7 found in the LICENSE file. | 7 found in the LICENSE file. |
8 | 8 |
9 Repackage expected/actual GM results as needed by our HTML rebaseline viewer. | 9 Repackage expected/actual GM results as needed by our HTML rebaseline viewer. |
10 """ | 10 """ |
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
71 actuals_root: root directory containing all actual-results.json files | 71 actuals_root: root directory containing all actual-results.json files |
72 expected_root: root directory containing all expected-results.json files | 72 expected_root: root directory containing all expected-results.json files |
73 ignore_failures_file: if a file with this name is found within | 73 ignore_failures_file: if a file with this name is found within |
74 expected_root, ignore failures for any tests listed in the file | 74 expected_root, ignore failures for any tests listed in the file |
75 diff_base_url: base URL within which the client should look for diff | 75 diff_base_url: base URL within which the client should look for diff |
76 images; if not specified, defaults to a "file:///" URL representation | 76 images; if not specified, defaults to a "file:///" URL representation |
77 of image_diff_db's storage_root | 77 of image_diff_db's storage_root |
78 builder_regex_list: List of regular expressions specifying which builders | 78 builder_regex_list: List of regular expressions specifying which builders |
79 we will process. If None, process all builders. | 79 we will process. If None, process all builders. |
80 """ | 80 """ |
| 81 super(ExpectationComparisons, self).__init__() |
81 time_start = int(time.time()) | 82 time_start = int(time.time()) |
82 if builder_regex_list != None: | 83 if builder_regex_list != None: |
83 self.set_match_builders_pattern_list(builder_regex_list) | 84 self.set_match_builders_pattern_list(builder_regex_list) |
84 self._image_diff_db = image_diff_db | 85 self._image_diff_db = image_diff_db |
85 self._diff_base_url = ( | 86 self._diff_base_url = ( |
86 diff_base_url or | 87 diff_base_url or |
87 url_utils.create_filepath_url(image_diff_db.storage_root)) | 88 url_utils.create_filepath_url(image_diff_db.storage_root)) |
88 self._actuals_root = actuals_root | 89 self._actuals_root = actuals_root |
89 self._expected_root = expected_root | 90 self._expected_root = expected_root |
90 self._ignore_failures_on_these_tests = [] | 91 self._ignore_failures_on_these_tests = [] |
(...skipping 313 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
404 actuals_root=args.actuals, | 405 actuals_root=args.actuals, |
405 expected_root=args.expectations, | 406 expected_root=args.expectations, |
406 ignore_failures_file=args.ignore_failures_file) | 407 ignore_failures_file=args.ignore_failures_file) |
407 gm_json.WriteToFile( | 408 gm_json.WriteToFile( |
408 results_obj.get_packaged_results_of_type(results_type=args.results), | 409 results_obj.get_packaged_results_of_type(results_type=args.results), |
409 args.outfile) | 410 args.outfile) |
410 | 411 |
411 | 412 |
412 if __name__ == '__main__': | 413 if __name__ == '__main__': |
413 main() | 414 main() |
OLD | NEW |