OLD | NEW |
1 #!/usr/bin/env python | 1 #!/usr/bin/env python |
2 # Copyright (c) 2013 The Chromium Authors. All rights reserved. | 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 | 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 """ Pulls the directory with render results from the Android device. """ | 6 """ Pulls the directory with render results from the Android device. """ |
7 | 7 |
8 from android_build_step import AndroidBuildStep | 8 from android_build_step import AndroidBuildStep |
9 from build_step import BuildStep | 9 from build_step import BuildStep |
10 from postrender import PostRender | 10 from postrender import PostRender |
(...skipping 10 matching lines...) Expand all Loading... |
21 self._device_dirs.GMActualDir(), | 21 self._device_dirs.GMActualDir(), |
22 self._gm_image_subdir), | 22 self._gm_image_subdir), |
23 self._gm_actual_dir]) | 23 self._gm_actual_dir]) |
24 android_utils.RunADB(self._serial, ['pull', self._device_dirs.SKPOutDir(), | 24 android_utils.RunADB(self._serial, ['pull', self._device_dirs.SKPOutDir(), |
25 self._gm_actual_dir]) | 25 self._gm_actual_dir]) |
26 android_utils.RunADB(self._serial, ['shell', 'rm', '-r', | 26 android_utils.RunADB(self._serial, ['shell', 'rm', '-r', |
27 self._device_dirs.GMActualDir()]) | 27 self._device_dirs.GMActualDir()]) |
28 android_utils.RunADB(self._serial, ['shell', 'rm', '-r', | 28 android_utils.RunADB(self._serial, ['shell', 'rm', '-r', |
29 self._device_dirs.SKPOutDir()]) | 29 self._device_dirs.SKPOutDir()]) |
30 | 30 |
| 31 # Pull skimage results from device: |
| 32 android_utils.RunADB(self._serial, ['pull', |
| 33 self._device_dirs.SKImageOutDir(), |
| 34 self._skimage_out_dir]) |
| 35 |
| 36 # And remove them. |
| 37 android_utils.RunADB(self._serial, ['shell', 'rm', '-r', |
| 38 self._device_dirs.SKImageOutDir()]) |
31 | 39 |
32 if '__main__' == __name__: | 40 if '__main__' == __name__: |
33 sys.exit(BuildStep.RunBuildStep(AndroidPostRender)) | 41 sys.exit(BuildStep.RunBuildStep(AndroidPostRender)) |
OLD | NEW |