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