Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(592)

Side by Side Diff: client/site_tests/hardware_bma150/hardware_bma150.py

Issue 3116009: Update autotest tests to use make -j where possible. (Closed) Base URL: ssh://git@chromiumos-git/autotest.git
Patch Set: Convert last two tests to use utils.make(), saving another 20 seconds. Created 10 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698