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 site_tpm, test, utils | 7 from autotest_lib.client.bin import site_tpm, test, utils |
8 | 8 |
9 class hardware_TPM(test.test): | 9 class hardware_TPM(test.test): |
10 version = 1 | 10 version = 1 |
11 preserve_srcdir = True | 11 preserve_srcdir = True |
12 | 12 |
13 def setup(self): | 13 def setup(self): |
14 os.chdir(self.srcdir) | 14 os.chdir(self.srcdir) |
15 utils.system('make clean all') | 15 utils.make('clean all') |
16 | 16 |
17 def run_once(self, suite): | 17 def run_once(self, suite): |
18 site_tpm.run_trousers_tests('%s/src/tests/%s' % (self.bindir, suite)) | 18 site_tpm.run_trousers_tests('%s/src/tests/%s' % (self.bindir, suite)) |
OLD | NEW |