• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright (c) 2012 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.cros import storage as storage_mod
6
7NAME = "hardware_UsbMount"
8AUTHOR = "Cosimo Alfarano <cosimo.alfarano@collabora.co.uk"
9PURPOSE = "Verify a USB drive can mount/umount"
10CRITERIA = """Fails if it cannot issue mount/umount commands or if filesystem
11is not still mounted after suspend.
12"""
13TIME = "SHORT"
14TEST_CATEGORY = "Functional"
15TEST_CLASS = "hardware"
16TEST_TYPE = "client"
17
18DOC = """
19Mounts/umounts several times a filesystem, creating a file and checking it"s
20presence/content integrity in beetween mountng cycles.
21
22Also checks that after suspending with the file system mounted and resuming,
23the file sysem is still mounted
24
25This test requires a USB drive inserted before the test begins.
26This test will prepare the USB drive formatting its partition before starting
27the test.
28"""
29
30job.run_test("hardware_UsbMount")
31