blob: 034eba9d529f2fadbd16738bc62c4e3951057cfe [file] [log] [blame]
# Copyright (c) 2013 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.
#pylint: disable-msg=C0111
from autotest_lib.client.bin import test
from autotest_lib.client.common_lib import error
from autotest_lib.client.common_lib.cros import chrome
from autotest_lib.client.cros import cryptohome
class login_CryptohomeIncognito(test.test):
version = 1
def run_once(self):
with chrome.Chrome(logged_in=False):
if not cryptohome.is_guest_vault_mounted():
raise error.TestFail('Expected to find a guest vault mounted.')
# Allow the command to fail, so we can handle the error here.
if cryptohome.is_guest_vault_mounted(allow_fail=True):
raise error.TestFail('Expected to NOT find a guest vault mounted.')