OLD | NEW |
1 # Copyright (c) 2010 The Chromium OS Authors. All rights reserved. | 1 # Copyright (c) 2010 The Chromium OS Authors. All rights reserved. |
2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
4 | 4 |
5 from autotest_lib.client.common_lib import global_config | 5 from autotest_lib.client.common_lib import global_config |
6 from autotest_lib.client.common_lib.cros import autoupdater | 6 from autotest_lib.client.common_lib.cros import autoupdater |
7 from autotest_lib.server import autoserv_parser | 7 from autotest_lib.server import autoserv_parser |
8 from autotest_lib.server.hosts import base_classes | 8 from autotest_lib.server.hosts import base_classes |
9 | 9 |
10 | 10 |
(...skipping 18 matching lines...) Expand all Loading... |
29 # TODO(seano): Once front-end changes are in, Kill this entire | 29 # TODO(seano): Once front-end changes are in, Kill this entire |
30 # cmdline flag; It doesn't match the Autotest workflow. | 30 # cmdline flag; It doesn't match the Autotest workflow. |
31 if parser.options.image: | 31 if parser.options.image: |
32 update_url=parser.options.image | 32 update_url=parser.options.image |
33 elif not update_url: | 33 elif not update_url: |
34 return False | 34 return False |
35 updater = autoupdater.ChromiumOSUpdater(host=self, | 35 updater = autoupdater.ChromiumOSUpdater(host=self, |
36 update_url=update_url) | 36 update_url=update_url) |
37 updater.run_update() | 37 updater.run_update() |
38 # Updater has returned, successfully, reboot the host. | 38 # Updater has returned, successfully, reboot the host. |
39 self.reboot(timeout=120, wait=True) | 39 self.reboot(timeout=60, wait=True) |
40 # Following the reboot, verify the correct version. | 40 # Following the reboot, verify the correct version. |
41 updater.check_version() | 41 updater.check_version() |
| 42 |
| 43 # Clean up any old autotest directories which may be lying around. |
| 44 for path in global_config.global_config.get_config_value( |
| 45 'AUTOSERV', 'client_autodir_paths', type=list): |
| 46 self.run('rm -rf ' + path) |
OLD | NEW |