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

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

Issue 16226005: Run skimage on the bots. (Closed) Base URL: https://skia.googlecode.com/svn/buildbot
Patch Set: Respond to comments Created 7 years, 6 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 | Annotate | Revision Log
OLDNEW
(Empty)
1 #!/usr/bin/env python
borenet 2013/06/26 18:51:56 I just realized - You'll need to create "android_r
scroggo 2013/06/26 20:07:08 Done. How does the slave know where to find the r
borenet 2013/06/26 20:23:14 There's a "flavor" property for each build factory
2 # Copyright (c) 2013 The Chromium Authors. All rights reserved.
3 # Use of this source code is governed by a BSD-style license that can be
4 # found in the LICENSE file.
5
6 """ Run the Skia skimage executable. """
7
8 from build_step import BuildStep
9 from utils.gs_utils import TIMESTAMP_COMPLETED_FILENAME
10 import os
11 import sys
12
13 class RunDecodingTests(BuildStep):
14 def _Run(self):
15 image_dir = self._device_dirs.SKImageInDir()
16
17 # Skip the time stamp file.
18 images = [self.DevicePathJoin(image_dir, filename)
19 for filename in os.listdir(image_dir)
20 if not filename == TIMESTAMP_COMPLETED_FILENAME]
21 cmd = ['-r']
22 cmd.extend(images)
23
24 if self._gm_image_subdir is not None:
25 expectations_name = self._gm_image_subdir + '.json'
26
27 # Read expectations, which were downloaded/copied to the device.
28 expectations_file = self.DevicePathJoin(
borenet 2013/06/26 18:47:31 Nice!
29 self._device_dirs.SKImageExpectedDir(),
30 expectations_name)
31
32 if self.DevicePathExists(expectations_file):
33 cmd.extend(['--readExpectationsPath', expectations_file])
34
35 # Write the expectations file, in case any did not match.
36 output_expectations_file = self.DevicePathJoin(
37 self._device_dirs.SKImageOutDir(),
38 expectations_name)
39
40 cmd.extend(['--createExpectationsPath', output_expectations_file])
41
42 # Draw any mismatches to the same folder as the output json.
43 cmd.extend(['--mismatchPath', self._device_dirs.SKImageOutDir()])
44
45 self.RunFlavoredCmd('skimage', cmd)
46
47
48 if '__main__' == __name__:
49 sys.exit(BuildStep.RunBuildStep(RunDecodingTests))
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698