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

Unified Diff: slave/skia_slave_scripts/run_gm.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/run_dm.py ('k') | slave/skia_slave_scripts/run_gm_self_tests.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: slave/skia_slave_scripts/run_gm.py
diff --git a/slave/skia_slave_scripts/run_gm.py b/slave/skia_slave_scripts/run_gm.py
deleted file mode 100644
index e7c003f420398b50dd48f2ecd27c43dbb8ea6538..0000000000000000000000000000000000000000
--- a/slave/skia_slave_scripts/run_gm.py
+++ /dev/null
@@ -1,92 +0,0 @@
-#!/usr/bin/env python
-# Copyright (c) 2013 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.
-
-""" Run the Skia GM executable. """
-
-from build_step import BuildStep
-import build_step
-import sys
-
-
-JSON_SUMMARY_FILENAME = 'actual-results.json'
-
-
-class RunGM(BuildStep):
- def __init__(self, timeout=9600, no_output_timeout=9600, **kwargs):
- super(RunGM, self).__init__(
- timeout=timeout, no_output_timeout=no_output_timeout, **kwargs)
-
- def _Run(self):
- output_dir = self._flavor_utils.DevicePathJoin(
- self._device_dirs.GMActualDir(), self._builder_name)
- cmd = ['--verbose',
- '--writeChecksumBasedFilenames',
- # Don't bother writing out image files that match our expectations--
- # we know that previous runs have already uploaded those!
- '--mismatchPath', output_dir,
- '--missingExpectationsPath', output_dir,
- '--writeJsonSummaryPath', self._flavor_utils.DevicePathJoin(
- output_dir, JSON_SUMMARY_FILENAME),
- '--ignoreErrorTypes',
- 'IntentionallySkipped', 'MissingExpectations',
- 'ExpectationsMismatch',
- '--resourcePath', self._device_dirs.ResourceDir(),
- ] + self._gm_args
-
- device_gm_expectations_path = self._flavor_utils.DevicePathJoin(
- self._device_dirs.GMExpectedDir(), build_step.GM_EXPECTATIONS_FILENAME)
- if self._flavor_utils.DevicePathExists(device_gm_expectations_path):
- cmd.extend(['--readPath', device_gm_expectations_path])
-
- device_ignore_failures_path = self._flavor_utils.DevicePathJoin(
- self._device_dirs.GMExpectedDir(),
- build_step.GM_IGNORE_FAILURES_FILE)
- if self._flavor_utils.DevicePathExists(device_ignore_failures_path):
- cmd.extend(['--ignoreFailuresFile', device_ignore_failures_path])
-
- if 'Xoom' in self._builder_name:
- # The Xoom's GPU will crash on some tests if we don't use this flag.
- # http://code.google.com/p/skia/issues/detail?id=1434
- cmd.append('--resetGpuContext')
-
- if sys.platform == 'darwin':
- # msaa16 is flaky on Macs (driver bug?) so we skip the test for now
- cmd.extend(['--config', 'defaults', '~msaa16'])
- elif 'Nexus10' in self._builder_name:
- cmd.extend(['--config', 'defaults', 'msaa4'])
- elif 'ANGLE' in self._builder_name:
- cmd.extend(['--config', 'angle'])
- elif (not 'NoGPU' in self._builder_name and
- not 'ChromeOS' in self._builder_name):
- cmd.extend(['--config', 'defaults', 'msaa16'])
-
- if 'Valgrind' in self._builder_name:
- # Poppler has lots of memory errors. Skip PDF rasterisation so we don't
- # have to see them
- # Bug: https://code.google.com/p/skia/issues/detail?id=1806
- cmd.extend(['--pdfRasterizers'])
- if 'ZeroGPUCache' in self._builder_name:
- cmd.extend(['--gpuCacheSize', '0', '0', '--config', 'gpu'])
- if self._builder_name in ('Test-Win7-ShuttleA-HD2000-x86-Release',
- 'Test-Win7-ShuttleA-HD2000-x86-Release-Trybot'):
- cmd.extend(['--useDocumentInsteadOfDevice',
- '--forcePerspectiveMatrix',
- # Disabling the following tests because they crash GM in
- # perspective mode.
- # See https://code.google.com/p/skia/issues/detail?id=1665
- '--match',
- '~scaled_tilemodes',
- '~convexpaths',
- '~clipped-bitmap',
- '~xfermodes3'])
-
- if 'Venue8' in self._builder_name: # skia:2922
- cmd.extend(['--match', '~imagealphathreshold'])
-
- self._flavor_utils.RunFlavoredCmd('gm', cmd)
-
-
-if '__main__' == __name__:
- sys.exit(BuildStep.RunBuildStep(RunGM))
« no previous file with comments | « slave/skia_slave_scripts/run_dm.py ('k') | slave/skia_slave_scripts/run_gm_self_tests.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698