blob: a55c61ecb97666142b949f2de8963f2b82c38c5f [file] [log] [blame]
# Copyright (c) 2011 The Chromium OS Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
import logging
from autotest_lib.client.common_lib import error
from autotest_lib.server import test
class autoupdate(test.test):
version = 1
def run_once(self, update_url, host):
try:
host.machine_install(force_update=True, update_url=update_url)
except error.InstallError, e:
logging.error(e)
raise error.TestFail(str(e))