OLD | NEW |
---|---|
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 """ Step to run after the render steps. """ | 6 """ Step to run after the render steps. """ |
7 | 7 |
8 from build_step import BuildStep | 8 from build_step import BuildStep |
9 import sys | 9 import sys |
10 | 10 |
11 | 11 |
12 class PostRender(BuildStep): | 12 class PostRender(BuildStep): |
13 def _Run(self): | 13 def _RunAfterGenerateGMs(self): |
14 self._flavor_utils.CopyDirectoryContentsToHost( | 14 self._flavor_utils.CopyDirectoryContentsToHost( |
15 self._flavor_utils.DevicePathJoin(self._device_dirs.GMActualDir(), | 15 self._flavor_utils.DevicePathJoin(self._device_dirs.GMActualDir(), |
16 self._builder_name), | 16 self._builder_name), |
17 self._gm_actual_dir) | 17 self._gm_actual_dir) |
18 self._flavor_utils.CopyDirectoryContentsToHost( | 18 |
19 self._device_dirs.SKPOutDir(), self.skp_out_dir) | 19 def _RunAfterRunDecodingTests(self): |
20 self._flavor_utils.CopyDirectoryContentsToHost( | 20 self._flavor_utils.CopyDirectoryContentsToHost( |
21 self._device_dirs.SKImageOutDir(), self._skimage_out_dir) | 21 self._device_dirs.SKImageOutDir(), self._skimage_out_dir) |
22 | 22 |
23 def _RunAfterRenderSKPs(self): | |
24 self._flavor_utils.CopyDirectoryContentsToHost( | |
25 self._device_dirs.PlaybackActualImagesDir(), | |
26 self.playback_actual_images_dir) | |
27 self._flavor_utils.CopyDirectoryContentsToHost( | |
28 self._device_dirs.PlaybackActualSummariesDir(), | |
29 self.playback_actual_summaries_dir) | |
30 | |
31 def _Run(self): | |
epoger
2014/05/19 19:35:40
It was more of an issue in prerender.py than here,
borenet
2014/05/19 21:04:38
It's possible that we should just have optional pr
epoger
2014/05/19 22:07:24
Do you mean...
1. Copying GM expectations to the d
| |
32 self._RunAfterGenerateGMs() | |
33 self._RunAfterRunDecodingTests() | |
34 self._RunAfterRenderSKPs() | |
35 | |
23 | 36 |
24 if '__main__' == __name__: | 37 if '__main__' == __name__: |
25 sys.exit(BuildStep.RunBuildStep(PostRender)) | 38 sys.exit(BuildStep.RunBuildStep(PostRender)) |
OLD | NEW |