1# Copyright 2018 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 5from autotest_lib.client.common_lib.cros import chrome 6from autotest_lib.client.cros.update_engine import update_engine_test 7 8class autoupdate_LoginStartUpdateLogout(update_engine_test.UpdateEngineTest): 9 """ 10 Logs in, starts an update, waits for a while, then logs out. 11 12 This test is used as part of the server test autoupdate_Interruptions. 13 14 """ 15 version = 1 16 17 def run_once(self, server, port, progress_to_complete): 18 # Login as regular user. Start an update. Then Logout 19 with chrome.Chrome(logged_in=True): 20 self._check_for_update(server=server, port=port) 21 self._wait_for_progress(progress_to_complete) 22