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

Side by Side Diff: buildbot/slave/skia_slave_scripts/prerender.py

Issue 23120002: Remove base-* directories from gm expected/actual paths; just use platform names (Closed) Base URL: http://skia.googlecode.com/svn/
Patch Set: apply_comments_from_patchset5 Created 7 years, 4 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
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 """ Prepare runtime resources that are needed by Test builders but not 6 """ Prepare runtime resources that are needed by Test builders but not
7 Bench builders. """ 7 Bench builders. """
8 8
9 from build_step import BuildStep 9 from build_step import BuildStep
10 from utils import shell_utils 10 from utils import shell_utils
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after
106 print 'Pushing GM expectations from %s on host to %s on device...' % ( 106 print 'Pushing GM expectations from %s on host to %s on device...' % (
107 temp_gm_expectations_path, device_gm_expectations_path) 107 temp_gm_expectations_path, device_gm_expectations_path)
108 self._flavor_utils.PushFileToDevice(temp_gm_expectations_path, 108 self._flavor_utils.PushFileToDevice(temp_gm_expectations_path,
109 device_gm_expectations_path) 109 device_gm_expectations_path)
110 shutil.rmtree(tempdir) 110 shutil.rmtree(tempdir)
111 111
112 # Prepare directory to hold GM actuals. 112 # Prepare directory to hold GM actuals.
113 self._flavor_utils.CreateCleanHostDirectory(self._gm_actual_dir) 113 self._flavor_utils.CreateCleanHostDirectory(self._gm_actual_dir)
114 self._flavor_utils.CreateCleanDeviceDirectory( 114 self._flavor_utils.CreateCleanDeviceDirectory(
115 self._flavor_utils.DevicePathJoin(self._device_dirs.GMActualDir(), 115 self._flavor_utils.DevicePathJoin(self._device_dirs.GMActualDir(),
116 self._gm_image_subdir)) 116 self._builder_name))
117 self._flavor_utils.CreateCleanHostDirectory( 117 self._flavor_utils.CreateCleanHostDirectory(
118 self._local_playback_dirs.PlaybackGmActualDir()) 118 self._local_playback_dirs.PlaybackGmActualDir())
119 self._flavor_utils.CreateCleanDeviceDirectory(self._device_dirs.SKPOutDir()) 119 self._flavor_utils.CreateCleanDeviceDirectory(self._device_dirs.SKPOutDir())
120 120
121 # Copy expectations file and images to decode in skimage to device. 121 # Copy expectations file and images to decode in skimage to device.
122 self._flavor_utils.CopyDirectoryContentsToDevice( 122 self._flavor_utils.CopyDirectoryContentsToDevice(
123 self._skimage_expected_dir, self._device_dirs.SKImageExpectedDir()) 123 self._skimage_expected_dir, self._device_dirs.SKImageExpectedDir())
124 124
125 self._flavor_utils.CopyDirectoryContentsToDevice( 125 self._flavor_utils.CopyDirectoryContentsToDevice(
126 self._skimage_in_dir, self._device_dirs.SKImageInDir()) 126 self._skimage_in_dir, self._device_dirs.SKImageInDir())
127 127
128 128
129 # Create a directory for the output of skimage 129 # Create a directory for the output of skimage
130 self._flavor_utils.CreateCleanHostDirectory(self._skimage_out_dir) 130 self._flavor_utils.CreateCleanHostDirectory(self._skimage_out_dir)
131 self._flavor_utils.CreateCleanDeviceDirectory( 131 self._flavor_utils.CreateCleanDeviceDirectory(
132 self._device_dirs.SKImageOutDir()) 132 self._device_dirs.SKImageOutDir())
133 133
134 134
135 if '__main__' == __name__: 135 if '__main__' == __name__:
136 sys.exit(BuildStep.RunBuildStep(PreRender)) 136 sys.exit(BuildStep.RunBuildStep(PreRender))
OLDNEW
« no previous file with comments | « buildbot/slave/skia_slave_scripts/postrender.py ('k') | buildbot/slave/skia_slave_scripts/run_gm.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698