| # Copyright (c) 2012 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. |
| |
| AUTHOR = 'The Chromium OS Authors' |
| NAME = 'hardware_DiskSize with performance constraints' |
| PURPOSE = 'Ensure the hard disk is large enough.' |
| CRITERIA = 'Fails if the main disk is less than gb_main_disk_size.' |
| SUITE = "hwqual" |
| TIME='SHORT' |
| TEST_CATEGORY = 'Functional' |
| TEST_CLASS = "hardware" |
| TEST_TYPE = 'client' |
| |
| DOC = """ |
| This test will find the disk where /dev is located by searching /proc/cmdline, |
| and will then determine the size of the main disk by reading /proc/partitions. |
| """ |
| |
| job.run_test('hardware_DiskSize', constraints=['gb_main_disk_size >= 8']) |