Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(173)

Side by Side Diff: server/hosts/chromiumos_host.py

Issue 6480053: Revert stateful_change=clean and timeout=120. (Closed) Base URL: ssh://git@gitrw.chromium.org:9222/autotest.git@master
Patch Set: Created 9 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « client/common_lib/cros/autoupdater.py ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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)
OLDNEW
« no previous file with comments | « client/common_lib/cros/autoupdater.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698