OLD | NEW |
| (Empty) |
1 #!/usr/bin/env python | |
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 | |
4 # found in the LICENSE file. | |
5 | |
6 """ Step to run after the render steps. """ | |
7 | |
8 from build_step import BuildStep | |
9 import sys | |
10 | |
11 | |
12 class PostRender(BuildStep): | |
13 def _RunAfterGenerateGMs(self): | |
14 self._flavor_utils.CopyDirectoryContentsToHost( | |
15 self._flavor_utils.DevicePathJoin(self._device_dirs.GMActualDir(), | |
16 self._builder_name), | |
17 self._gm_actual_dir) | |
18 | |
19 def _RunAfterDM(self): | |
20 self._flavor_utils.CopyDirectoryContentsToHost(self._device_dirs.DMDir(), | |
21 self._dm_dir) | |
22 | |
23 def _RunAfterRunDecodingTests(self): | |
24 self._flavor_utils.CopyDirectoryContentsToHost( | |
25 self._device_dirs.SKImageOutDir(), self._skimage_out_dir) | |
26 | |
27 def _RunAfterRenderSKPs(self): | |
28 self._flavor_utils.CopyDirectoryContentsToHost( | |
29 self._device_dirs.PlaybackActualImagesDir(), | |
30 self.playback_actual_images_dir) | |
31 self._flavor_utils.CopyDirectoryContentsToHost( | |
32 self._device_dirs.PlaybackActualSummariesDir(), | |
33 self.playback_actual_summaries_dir) | |
34 | |
35 | |
36 def _Run(self): | |
37 self._RunAfterGenerateGMs() | |
38 self._RunAfterDM() | |
39 self._RunAfterRunDecodingTests() | |
40 self._RunAfterRenderSKPs() | |
41 | |
42 | |
43 if '__main__' == __name__: | |
44 sys.exit(BuildStep.RunBuildStep(PostRender)) | |
OLD | NEW |