OLD | NEW |
1 # Copyright (c) 2010 The Chromium OS Authors. All rights reserved. | 1 # 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 | 2 # Use of this source code is governed by a BSD-style license that can be |
3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
4 | 4 |
5 import os | 5 import os |
6 | 6 |
7 from autotest_lib.client.bin import test, utils | 7 from autotest_lib.client.bin import test, utils |
8 from autotest_lib.client.common_lib import error | 8 from autotest_lib.client.common_lib import error |
9 | 9 |
10 class hardware_bma150(test.test): | 10 class hardware_bma150(test.test): |
11 """ | 11 """ |
12 Test the BMA150 accelerometer device. | 12 Test the BMA150 accelerometer device. |
13 Failure to find the device likely indicates the kernel module is not loaded. | 13 Failure to find the device likely indicates the kernel module is not loaded. |
14 """ | 14 """ |
15 version = 1 | 15 version = 1 |
16 | 16 |
17 preserve_srcdir = True | 17 preserve_srcdir = True |
18 | 18 |
19 def setup(self): | 19 def setup(self): |
20 os.chdir(self.srcdir) | 20 os.chdir(self.srcdir) |
21 utils.system('make') | 21 utils.make() |
22 | 22 |
23 def run_once(self): | 23 def run_once(self): |
24 bma_test_cmd = os.path.join(self.srcdir, "bma150tst") | 24 bma_test_cmd = os.path.join(self.srcdir, "bma150tst") |
25 utils.system(bma_test_cmd) | 25 utils.system(bma_test_cmd) |
OLD | NEW |