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

Side by Side Diff: slave/skia_slave_scripts/compare_gms.py

Issue 344183004: Use new common utils where possible. (Closed) Base URL: https://skia.googlesource.com/buildbot.git@master
Patch Set: rebase 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
OLDNEW
1 #!/usr/bin/env python 1 #!/usr/bin/env python
2 # Copyright (c) 2012 The Chromium Authors. All rights reserved. 2 # Copyright (c) 2012 The Chromium Authors. All rights reserved.
3 # Use of this source code is governed by a BSD-style license that can be 3 # Use of this source code is governed by a BSD-style license that can be
4 # found in the LICENSE file. 4 # found in the LICENSE file.
5 5
6 """ Compare the generated GM images to the baselines """ 6 """ Compare the generated GM images to the baselines """
7 7
8 # System-level imports 8 # System-level imports
9 import os 9 import os
10 import sys 10 import sys
11 11
12 from build_step import BuildStep, BuildStepWarning 12 from build_step import BuildStep, BuildStepWarning
13 from utils import misc 13 from py.utils import misc
14 import run_gm 14 import run_gm
15 import skia_vars 15 import skia_vars
16 16
17 LIVE_REBASELINE_SERVER_BASEURL = ( 17 LIVE_REBASELINE_SERVER_BASEURL = (
18 'http://skia-tree-status.appspot.com/redirect/rebaseline-server/' 18 'http://skia-tree-status.appspot.com/redirect/rebaseline-server/'
19 'static/view.html#/view.html') 19 'static/view.html#/view.html')
20 20
21 21
22 class CompareGMs(BuildStep): 22 class CompareGMs(BuildStep):
23 def _Run(self): 23 def _Run(self):
(...skipping 14 matching lines...) Expand all
38 if not success: 38 if not success:
39 if self._builder_name in may_fail_with_warning: 39 if self._builder_name in may_fail_with_warning:
40 raise BuildStepWarning('Expectations mismatch in %s!' % 40 raise BuildStepWarning('Expectations mismatch in %s!' %
41 json_summary_path) 41 json_summary_path)
42 else: 42 else:
43 raise Exception('Expectations mismatch in %s!' % json_summary_path) 43 raise Exception('Expectations mismatch in %s!' % json_summary_path)
44 44
45 45
46 if '__main__' == __name__: 46 if '__main__' == __name__:
47 sys.exit(BuildStep.RunBuildStep(CompareGMs)) 47 sys.exit(BuildStep.RunBuildStep(CompareGMs))
OLDNEW
« no previous file with comments | « slave/skia_slave_scripts/chrome_drt_canary_upload_results.py ('k') | slave/skia_slave_scripts/detect_static_initializers.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698