tests/display.py
changeset 195 c1ba166f3fc4
child 263 ba85a47ee414
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/tests/display.py	Sat Nov 17 18:41:01 2012 -0800
     1.3 @@ -0,0 +1,23 @@
     1.4 +# vim: set ts=2 sw=2 tw=99 ft=python et:
     1.5 +
     1.6 +class Interactive:
     1.7 +  def __init__(self):
     1.8 +    self.failures = []
     1.9 +    self.timeouts = []
    1.10 +
    1.11 +  def begin(self, tests):
    1.12 +    return
    1.13 +
    1.14 +  def result(self, test, r):
    1.15 +    if r.ok:
    1.16 +      print('PASS: ' + test.name)
    1.17 +    else:
    1.18 +      if r.timeout:
    1.19 +        print('TIMEOUT: ' + test.name)
    1.20 +      else:
    1.21 +        print('FAIL: ' + test.name)
    1.22 +      print(' -- Error code: ' + str(r.code))
    1.23 +      print(' -- message: \n' + r.message)
    1.24 +      print(' -- stdout: \n' + r.out)
    1.25 +      print(' -- stderr: \n' + r.err)
    1.26 +