Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(47)

Side by Side Diff: client/bin/harness_ABAT.py

Issue 6883035: Merge remote branch 'autotest-upstream/master' into autotest-merge (Closed) Base URL: ssh://gitrw.chromium.org:9222/autotest.git@master
Patch Set: patch Created 9 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698