blob: 28efb17613a28af356670a1c647f47463d4a3d51 [file] [log] [blame]
Chris Masone5e06f182010-03-23 08:29:52 -07001# Copyright (c) 2010 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
5import logging, os, utils, time
6from autotest_lib.client.bin import test
7from autotest_lib.client.common_lib import error
8
9def is_mounted(device = '/dev/mapper/cryptohome',
10 expected_mountpt = '/home/chronos/user'):
11 mount_line = utils.system_output('/bin/mount | grep %s' % device)
12 mountpt = (mount_line.split())[2]
13 return expected_mountpt == mountpt