OLD | NEW |
1 """The harness interface | 1 """The harness interface |
2 | 2 |
3 The interface between the client and the server when hosted. | 3 The interface between the client and the server when hosted. |
4 """ | 4 """ |
5 | 5 |
6 __author__ = """Copyright Andy Whitcroft 2006""" | 6 __author__ = """Copyright Andy Whitcroft 2006""" |
7 | 7 |
8 import os, sys, logging | 8 import os, sys, logging |
9 import common | 9 import common |
10 | 10 |
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
75 def test_status(self, status, tag): | 75 def test_status(self, status, tag): |
76 """A test within this job is completing""" | 76 """A test within this job is completing""" |
77 pass | 77 pass |
78 | 78 |
79 | 79 |
80 def test_status_detail(self, code, subdir, operation, status, tag): | 80 def test_status_detail(self, code, subdir, operation, status, tag): |
81 """A test within this job is completing (detail)""" | 81 """A test within this job is completing (detail)""" |
82 pass | 82 pass |
83 | 83 |
84 | 84 |
85 def select(which, job): | 85 def select(which, job, harness_args): |
86 if not which: | 86 if not which: |
87 which = 'standalone' | 87 which = 'standalone' |
88 | 88 |
89 logging.debug('Selected harness: %s' % which) | 89 logging.debug('Selected harness: %s' % which) |
90 | 90 |
91 harness_name = 'harness_%s' % which | 91 harness_name = 'harness_%s' % which |
92 harness_module = common.setup_modules.import_module(harness_name, | 92 harness_module = common.setup_modules.import_module(harness_name, |
93 'autotest_lib.client.bin
') | 93 'autotest_lib.client.bin
') |
94 harness_instance = getattr(harness_module, harness_name)(job) | 94 harness_instance = getattr(harness_module, harness_name)(job, harness_args) |
95 | 95 |
96 return harness_instance | 96 return harness_instance |
OLD | NEW |