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

Unified Diff: slave/skia_slave_scripts/compare_gms.py

Issue 648353002: Remove Skia's forked buildbot code (Closed) Base URL: https://skia.googlesource.com/buildbot.git@master
Patch Set: Address comment Created 6 years, 2 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « slave/skia_slave_scripts/clean.py ('k') | slave/skia_slave_scripts/compare_rendered_skps.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: slave/skia_slave_scripts/compare_gms.py
diff --git a/slave/skia_slave_scripts/compare_gms.py b/slave/skia_slave_scripts/compare_gms.py
deleted file mode 100644
index 69fee0213d1c568c5fd7c9dd5b863d5417d432f3..0000000000000000000000000000000000000000
--- a/slave/skia_slave_scripts/compare_gms.py
+++ /dev/null
@@ -1,47 +0,0 @@
-#!/usr/bin/env python
-# Copyright (c) 2012 The Chromium Authors. All rights reserved.
-# Use of this source code is governed by a BSD-style license that can be
-# found in the LICENSE file.
-
-""" Compare the generated GM images to the baselines """
-
-# System-level imports
-import os
-import sys
-
-from build_step import BuildStep, BuildStepWarning
-from py.utils import misc
-import run_gm
-import skia_vars
-
-LIVE_REBASELINE_SERVER_BASEURL = (
- 'http://skia-tree-status.appspot.com/redirect/rebaseline-server/'
- 'static/view.html#/view.html')
-
-
-class CompareGMs(BuildStep):
- def _Run(self):
- json_summary_path = misc.GetAbsPath(os.path.join(
- self._gm_actual_dir, run_gm.JSON_SUMMARY_FILENAME))
-
- # Temporary list of builders who are allowed to fail this step without the
- # bot turning red.
- may_fail_with_warning = []
- # This import must happen after BuildStep.__init__ because it requires that
- # CWD is in PYTHONPATH, and BuildStep.__init__ may change the CWD.
- from gm import display_json_results
- success = display_json_results.Display(json_summary_path)
- print ('%s<a href="%s?resultsToLoad=/results/failures&builder=%s">'
- 'link</a>' % (
- skia_vars.GetGlobalVariable('latest_gm_failures_preamble'),
- LIVE_REBASELINE_SERVER_BASEURL, self._builder_name))
- if not success:
- if self._builder_name in may_fail_with_warning:
- raise BuildStepWarning('Expectations mismatch in %s!' %
- json_summary_path)
- else:
- raise Exception('Expectations mismatch in %s!' % json_summary_path)
-
-
-if '__main__' == __name__:
- sys.exit(BuildStep.RunBuildStep(CompareGMs))
« no previous file with comments | « slave/skia_slave_scripts/clean.py ('k') | slave/skia_slave_scripts/compare_rendered_skps.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698