OLD | NEW |
---|---|
1 #!/usr/bin/python | 1 #!/usr/bin/python |
2 | 2 |
epoger
2013/07/12 19:34:53
Verified that the bug is gone by rebaselining all
borenet
2013/07/12 19:51:37
Do we ever expect this type of thing to happen aga
| |
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 | 9 |
10 ''' | 10 ''' |
11 Rebaselines GM test results as individual image files | 11 Rebaselines GM test results as individual image files |
12 (the "old way", before https://goto.google.com/ChecksumTransitionDetail ). | 12 (the "old way", before https://goto.google.com/ChecksumTransitionDetail ). |
(...skipping 258 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
271 if self._tests: | 271 if self._tests: |
272 if test not in self._tests: | 272 if test not in self._tests: |
273 skipped_files.append(filename) | 273 skipped_files.append(filename) |
274 continue | 274 continue |
275 if self._configs: | 275 if self._configs: |
276 if config not in self._configs: | 276 if config not in self._configs: |
277 skipped_files.append(filename) | 277 skipped_files.append(filename) |
278 continue | 278 continue |
279 outfilename = os.path.join(self._expectations_root, subdir, | 279 outfilename = os.path.join(self._expectations_root, subdir, |
280 filename); | 280 filename); |
281 # TODO(epoger): Until we resolve | 281 self._RebaselineOneFile(expectations_subdir=subdir, |
282 # https://code.google.com/p/skia/issues/detail?id=1410 ('some GM | 282 builder_name=builder, |
283 # result images not available for download from Google Storage'), | 283 infilename=filename, |
284 # keep going in the face of missing results for any one test. | 284 outfilename=outfilename, |
285 try: | 285 all_results=all_results) |
286 self._RebaselineOneFile(expectations_subdir=subdir, | |
287 builder_name=builder, | |
288 infilename=filename, | |
289 outfilename=outfilename, | |
290 all_results=all_results) | |
291 except Exception as e: | |
292 print 'WARNING: swallowing exception %s' % e | |
OLD | NEW |