blob: 8595a4fa82b541e6d2749ef3f3f63d1a6a4fdd6d [file] [log] [blame]
# Copyright (c) 2014 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
import os
import time
from autotest_lib.client.bin import test
from autotest_lib.client.common_lib.cros import chrome
class desktopui_SimpleLogin(test.test):
"""Login and wait until exit flag file is seen."""
version = 1
def run_once(self):
"""Entrance point for test."""
terminate_path = '/tmp/simple_login_exit'
if os.path.isfile(terminate_path):
with chrome.Chrome():
while True:
if os.path.isfile(terminate_path):'Exit flag detected; exiting.')