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 import time | 6 import time |
7 | 7 |
8 from autotest_lib.client.bin import factory | 8 from autotest_lib.client.bin import factory |
9 from autotest_lib.client.bin import factory_ui_lib as ful | 9 from autotest_lib.client.bin import factory_ui_lib as ful |
10 from autotest_lib.client.bin import test, utils | 10 from autotest_lib.client.bin import test, utils |
11 from autotest_lib.client.common_lib import error | 11 from autotest_lib.client.bin import factory_error as error |
12 | 12 |
13 | 13 |
14 GPIO_ROOT = '/home/gpio' | 14 GPIO_ROOT = '/home/gpio' |
15 GOOGLE_REQUIRED_TESTS = [ 'GRT_HWComponents', 'GRT_DevRec' ] | 15 GOOGLE_REQUIRED_TESTS = [ 'GRT_HWComponents', 'GRT_DevRec' ] |
16 | 16 |
17 | 17 |
18 def init_gpio(gpio_root=GPIO_ROOT): | 18 def init_gpio(gpio_root=GPIO_ROOT): |
19 """ initializes GPIO in GPIO_ROOT """ | 19 """ initializes GPIO in GPIO_ROOT """ |
20 if os.path.exists(gpio_root): | 20 if os.path.exists(gpio_root): |
21 utils.system("rm -rf '%s'" % gpio_root) | 21 utils.system("rm -rf '%s'" % gpio_root) |
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
92 check_and_enable_write_protect=True, | 92 check_and_enable_write_protect=True, |
93 status_file_path=None, | 93 status_file_path=None, |
94 test_list=None): | 94 test_list=None): |
95 | 95 |
96 # apply each final tests | 96 # apply each final tests |
97 self.check_google_required_tests(check_required_tests, | 97 self.check_google_required_tests(check_required_tests, |
98 status_file_path, | 98 status_file_path, |
99 test_list) | 99 test_list) |
100 self.check_developer_switch(check_developer_switch) | 100 self.check_developer_switch(check_developer_switch) |
101 self.check_flashrom_write_protect(check_and_enable_write_protect) | 101 self.check_flashrom_write_protect(check_and_enable_write_protect) |
OLD | NEW |