OLD | NEW |
1 """The ABAT harness interface | 1 """The ABAT harness interface |
2 | 2 |
3 The interface as required for ABAT. | 3 The interface as required for ABAT. |
4 """ | 4 """ |
5 | 5 |
6 __author__ = """Copyright Andy Whitcroft 2006""" | 6 __author__ = """Copyright Andy Whitcroft 2006""" |
7 | 7 |
8 from autotest_lib.client.bin import utils | 8 from autotest_lib.client.bin import utils |
9 import os, harness, time, re | 9 import os, harness, time, re |
10 | 10 |
(...skipping 27 matching lines...) Expand all Loading... |
38 | 38 |
39 | 39 |
40 class harness_ABAT(harness.harness): | 40 class harness_ABAT(harness.harness): |
41 """The ABAT server harness | 41 """The ABAT server harness |
42 | 42 |
43 Properties: | 43 Properties: |
44 job | 44 job |
45 The job object for this job | 45 The job object for this job |
46 """ | 46 """ |
47 | 47 |
48 def __init__(self, job): | 48 def __init__(self, job, harness_args): |
49 """ | 49 """ |
50 job | 50 job |
51 The job object for this job | 51 The job object for this job |
52 """ | 52 """ |
53 self.setup(job) | 53 self.setup(job) |
54 | 54 |
55 if 'ABAT_STATUS' in os.environ: | 55 if 'ABAT_STATUS' in os.environ: |
56 self.status = file(os.environ['ABAT_STATUS'], "w") | 56 self.status = file(os.environ['ABAT_STATUS'], "w") |
57 else: | 57 else: |
58 self.status = None | 58 self.status = None |
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
138 lines = msg.split("\n") | 138 lines = msg.split("\n") |
139 self.__send_status(code, subdir, operation, lines[0]) | 139 self.__send_status(code, subdir, operation, lines[0]) |
140 | 140 |
141 | 141 |
142 def test_status(self, msg, tag): | 142 def test_status(self, msg, tag): |
143 lines = msg.split("\n") | 143 lines = msg.split("\n") |
144 | 144 |
145 # Send each line as a SUMMARY message. | 145 # Send each line as a SUMMARY message. |
146 for line in lines: | 146 for line in lines: |
147 self.__send("SUMMARY :" + line) | 147 self.__send("SUMMARY :" + line) |
OLD | NEW |