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

Side by Side Diff: gm/rebaseline_server/results.py

Issue 480153002: Added 'renderMode' and 'builder' as columns to the SKP front-end. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Addressing issues from CR Created 6 years, 4 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 #!/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 """
11 11
12 # System-level imports 12 # System-level imports
13 import fnmatch 13 import fnmatch
14 import os 14 import os
15 import re 15 import re
16 16
17 # Must fix up PYTHONPATH before importing from within Skia 17 # Must fix up PYTHONPATH before importing from within Skia
18 import fix_pythonpath # pylint: disable=W0611 18 import rs_fixpypath # pylint: disable=W0611
19 19
20 # Imports from within Skia 20 # Imports from within Skia
21 import gm_json 21 import gm_json
22 import imagepairset 22 import imagepairset
23 23
24 # Keys used to link an image to a particular GM test. 24 # Keys used to link an image to a particular GM test.
25 # NOTE: Keep these in sync with static/constants.js 25 # NOTE: Keep these in sync with static/constants.js
26 VALUE__HEADER__SCHEMA_VERSION = 5 26 VALUE__HEADER__SCHEMA_VERSION = 5
27 KEY__EXPECTATIONS__BUGS = gm_json.JSONKEY_EXPECTEDRESULTS_BUGS 27 KEY__EXPECTATIONS__BUGS = gm_json.JSONKEY_EXPECTEDRESULTS_BUGS
28 KEY__EXPECTATIONS__IGNOREFAILURE = gm_json.JSONKEY_EXPECTEDRESULTS_IGNOREFAILURE 28 KEY__EXPECTATIONS__IGNOREFAILURE = gm_json.JSONKEY_EXPECTEDRESULTS_IGNOREFAILURE
(...skipping 301 matching lines...) Expand 10 before | Expand all | Expand 10 after
330 default_value: value to return if input_dict is None or any key cannot 330 default_value: value to return if input_dict is None or any key cannot
331 be found along the way 331 be found along the way
332 """ 332 """
333 if input_dict == None: 333 if input_dict == None:
334 return default_value 334 return default_value
335 for key in keys: 335 for key in keys:
336 input_dict = input_dict.get(key, None) 336 input_dict = input_dict.get(key, None)
337 if input_dict == None: 337 if input_dict == None:
338 return default_value 338 return default_value
339 return input_dict 339 return input_dict
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698