1# Copyright 2017 The Chromium OS Authors. All rights reserved. 2# Use of this source code is governed by a BSD-style license that can be 3# found in the LICENSE file. 4 5 6""" The autotest performing Cr50 update.""" 7 8 9import logging 10 11from autotest_lib.server.cros.faft.cr50_test import Cr50Test 12 13 14class provision_Cr50Update(Cr50Test): 15 """A test that can provision a machine to the correct cr50 version and 16 board id. 17 """ 18 version = 1 19 20 def initialize(self, host, cmdline_args, full_args): 21 """Initialize get the cr50 update version information""" 22 full_args['is_release_qual'] = 'true' 23 super(provision_Cr50Update, self).initialize(host, cmdline_args, 24 full_args) 25 26 def run_once(self): 27 """The method called by the control file to start the update.""" 28 logging.info('Used initialize logic to update to the cr50 release ' 29 'image') 30