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 113 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
124 (expect continue following reboot) | 124 (expect continue following reboot) |
125 """ | 125 """ |
126 self.__send("REBOOT") | 126 self.__send("REBOOT") |
127 | 127 |
128 | 128 |
129 def run_complete(self): | 129 def run_complete(self): |
130 """A run within this job is completing (all done)""" | 130 """A run within this job is completing (all done)""" |
131 self.__send("DONE") | 131 self.__send("DONE") |
132 | 132 |
133 | 133 |
134 def test_status_detail(self, code, subdir, operation, msg, tag): | 134 def test_status_detail(self, code, subdir, operation, msg, tag, |
| 135 optional_fields): |
135 """A test within this job is completing (detail)""" | 136 """A test within this job is completing (detail)""" |
136 | 137 |
137 # Send the first line with the status code as a STATUS message. | 138 # Send the first line with the status code as a STATUS message. |
138 lines = msg.split("\n") | 139 lines = msg.split("\n") |
139 self.__send_status(code, subdir, operation, lines[0]) | 140 self.__send_status(code, subdir, operation, lines[0]) |
140 | 141 |
141 | 142 |
142 def test_status(self, msg, tag): | 143 def test_status(self, msg, tag): |
143 lines = msg.split("\n") | 144 lines = msg.split("\n") |
144 | 145 |
145 # Send each line as a SUMMARY message. | 146 # Send each line as a SUMMARY message. |
146 for line in lines: | 147 for line in lines: |
147 self.__send("SUMMARY :" + line) | 148 self.__send("SUMMARY :" + line) |
OLD | NEW |