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

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

Issue 385783002: roll "common" DEPS, and replace tools/pyutils with it (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: rearrange DEPS a bit Created 6 years, 5 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
« no previous file with comments | « gm/rebaseline_server/fix_pythonpath.py ('k') | gm/rebaseline_server/server.py » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 # pylint: disable=W0611 18 import fix_pythonpath # pylint: disable=W0611
19 import fix_pythonpath
20 # pylint: enable=W0611
21 19
22 # Imports from within Skia 20 # Imports from within Skia
23 import gm_json 21 import gm_json
24 import imagepairset 22 import imagepairset
25 23
26 # Keys used to link an image to a particular GM test. 24 # Keys used to link an image to a particular GM test.
27 # NOTE: Keep these in sync with static/constants.js 25 # NOTE: Keep these in sync with static/constants.js
28 VALUE__HEADER__SCHEMA_VERSION = 4 26 VALUE__HEADER__SCHEMA_VERSION = 4
29 KEY__EXPECTATIONS__BUGS = gm_json.JSONKEY_EXPECTEDRESULTS_BUGS 27 KEY__EXPECTATIONS__BUGS = gm_json.JSONKEY_EXPECTEDRESULTS_BUGS
30 KEY__EXPECTATIONS__IGNOREFAILURE = gm_json.JSONKEY_EXPECTEDRESULTS_IGNOREFAILURE 28 KEY__EXPECTATIONS__IGNOREFAILURE = gm_json.JSONKEY_EXPECTEDRESULTS_IGNOREFAILURE
(...skipping 275 matching lines...) Expand 10 before | Expand all | Expand 10 after
306 304
307 @staticmethod 305 @staticmethod
308 def get_multilevel(input_dict, *keys): 306 def get_multilevel(input_dict, *keys):
309 """ Returns input_dict[key1][key2][...], or None if any key is not found. 307 """ Returns input_dict[key1][key2][...], or None if any key is not found.
310 """ 308 """
311 for key in keys: 309 for key in keys:
312 if input_dict == None: 310 if input_dict == None:
313 return None 311 return None
314 input_dict = input_dict.get(key, None) 312 input_dict = input_dict.get(key, None)
315 return input_dict 313 return input_dict
OLDNEW
« no previous file with comments | « gm/rebaseline_server/fix_pythonpath.py ('k') | gm/rebaseline_server/server.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698