diff options
Diffstat (limited to 'client/bin/harness_simple.py')
-rwxr-xr-x | client/bin/harness_simple.py | 56 |
1 files changed, 28 insertions, 28 deletions
diff --git a/client/bin/harness_simple.py b/client/bin/harness_simple.py index 7f104da4..5ff90d4a 100755 --- a/client/bin/harness_simple.py +++ b/client/bin/harness_simple.py @@ -7,31 +7,31 @@ __author__ = """Copyright Andy Whitcroft, Martin J. Bligh 2006""" import os, harness, time class harness_simple(harness.harness): - """ - The simple server harness - - Properties: - job - The job object for this job - """ - - def __init__(self, job): - """ - job - The job object for this job - """ - self.setup(job) - - self.status = os.fdopen(3, 'w') - - - def test_status(self, status, tag): - """A test within this job is completing""" - if self.status: - for line in status.split('\n'): - # prepend status messages with - # AUTOTEST_STATUS:tag: so that we can tell - # which lines were sent by the autotest client - pre = 'AUTOTEST_STATUS:%s:' % (tag,) - self.status.write(pre + line + '\n') - self.status.flush() + """ + The simple server harness + + Properties: + job + The job object for this job + """ + + def __init__(self, job): + """ + job + The job object for this job + """ + self.setup(job) + + self.status = os.fdopen(3, 'w') + + + def test_status(self, status, tag): + """A test within this job is completing""" + if self.status: + for line in status.split('\n'): + # prepend status messages with + # AUTOTEST_STATUS:tag: so that we can tell + # which lines were sent by the autotest client + pre = 'AUTOTEST_STATUS:%s:' % (tag,) + self.status.write(pre + line + '\n') + self.status.flush() |