| author | Asher Baker <asherkin@gmail.com> |
| Mon Jun 10 01:04:43 2013 +0100 (2013-06-10) | |
| changeset 263 | ba85a47ee414 |
| parent 195 | c1ba166f3fc4 |
| permissions | -rw-r--r-- |
| asherkin@263 | 1 |
# vim: set ts=2 sw=2 tw=99 ft=python et: |
| asherkin@263 | 2 |
|
| asherkin@263 | 3 |
class Interactive: |
| asherkin@263 | 4 |
def __init__(self): |
| asherkin@263 | 5 |
self.failures = [] |
| asherkin@263 | 6 |
self.timeouts = [] |
| asherkin@263 | 7 |
|
| asherkin@263 | 8 |
def begin(self, tests): |
| asherkin@263 | 9 |
return |
| asherkin@263 | 10 |
|
| asherkin@263 | 11 |
def result(self, test, r): |
| asherkin@263 | 12 |
if r.ok: |
| asherkin@263 | 13 |
print('PASS: ' + test.name) |
| asherkin@263 | 14 |
else: |
| asherkin@263 | 15 |
if r.timeout: |
| asherkin@263 | 16 |
print('TIMEOUT: ' + test.name) |
| asherkin@263 | 17 |
else: |
| asherkin@263 | 18 |
print('FAIL: ' + test.name) |
| asherkin@263 | 19 |
print(' -- Error code: ' + str(r.code)) |
| asherkin@263 | 20 |
print(' -- message: \n' + r.message) |
| asherkin@263 | 21 |
print(' -- stdout: \n' + r.out) |
| asherkin@263 | 22 |
print(' -- stderr: \n' + r.err) |
| asherkin@263 | 23 |