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 ChomeOS device. """ | 6 """ Pulls the directory with render results from the ChomeOS device. """ |
7 | 7 |
8 from chromeos_build_step import ChromeOSBuildStep | 8 from chromeos_build_step import ChromeOSBuildStep |
9 from build_step import BuildStep | 9 from build_step import BuildStep |
10 from postrender import PostRender | 10 from postrender import PostRender |
(...skipping 21 matching lines...) Expand all Loading... | |
32 for img in img_list: | 32 for img in img_list: |
33 ssh_utils.GetSCP(self._gm_actual_dir, | 33 ssh_utils.GetSCP(self._gm_actual_dir, |
34 posixpath.join(self._device_dirs.SKPOutDir(), img), | 34 posixpath.join(self._device_dirs.SKPOutDir(), img), |
35 self._ssh_username, self._ssh_host, self._ssh_port) | 35 self._ssh_username, self._ssh_host, self._ssh_port) |
36 | 36 |
37 ssh_utils.RunSSH(self._ssh_username, self._ssh_host, self._ssh_port, | 37 ssh_utils.RunSSH(self._ssh_username, self._ssh_host, self._ssh_port, |
38 ['rm', '-rf', self._device_dirs.GMActualDir()]) | 38 ['rm', '-rf', self._device_dirs.GMActualDir()]) |
39 ssh_utils.RunSSH(self._ssh_username, self._ssh_host, self._ssh_port, | 39 ssh_utils.RunSSH(self._ssh_username, self._ssh_host, self._ssh_port, |
40 ['rm', '-rf', self._device_dirs.SKPOutDir()]) | 40 ['rm', '-rf', self._device_dirs.SKPOutDir()]) |
41 | 41 |
42 # Copy skimage results and remove them from the device. | |
43 ssh_utils.GetSCP(self._skimage_out_dir, self._device_dirs.SKImageOutDir(), | |
scroggo
2013/06/24 17:43:16
The chrome steps are also untested, but mimic simi
| |
44 self._ssh_username, self._ssh_host, self._ssh_port, | |
45 recurse=True) | |
46 | |
47 ssh_utils.RunSSH(self._ssh_username, self._ssh_host, self._ssh_port, | |
48 ['rm', '-rf', self._device_dirs.SKImageOutDir()]) | |
49 | |
42 | 50 |
43 if '__main__' == __name__: | 51 if '__main__' == __name__: |
44 sys.exit(BuildStep.RunBuildStep(ChromeOSPostRender)) | 52 sys.exit(BuildStep.RunBuildStep(ChromeOSPostRender)) |
OLD | NEW |