Show More
@@ -357,6 +357,8 b' class Test(object):' | |||||
357 | self._unittest = unittest |
|
357 | self._unittest = unittest | |
358 |
|
358 | |||
359 | self._finished = None |
|
359 | self._finished = None | |
|
360 | self._ret = None | |||
|
361 | self._out = None | |||
360 |
|
362 | |||
361 | # If we're not in --debug mode and reference output file exists, |
|
363 | # If we're not in --debug mode and reference output file exists, | |
362 | # check test output against it. |
|
364 | # check test output against it. | |
@@ -382,6 +384,8 b' class Test(object):' | |||||
382 | def setUp(self): |
|
384 | def setUp(self): | |
383 | """Tasks to perform before run().""" |
|
385 | """Tasks to perform before run().""" | |
384 | self._finished = False |
|
386 | self._finished = False | |
|
387 | self._ret = None | |||
|
388 | self._out = None | |||
385 |
|
389 | |||
386 | def run(self): |
|
390 | def run(self): | |
387 | """Run this test instance. |
|
391 | """Run this test instance. | |
@@ -433,6 +437,8 b' class Test(object):' | |||||
433 | ret, out = self._run(testtmp, replacements, env) |
|
437 | ret, out = self._run(testtmp, replacements, env) | |
434 | duration = time.time() - starttime |
|
438 | duration = time.time() - starttime | |
435 | self._finished = True |
|
439 | self._finished = True | |
|
440 | self._ret = ret | |||
|
441 | self._out = out | |||
436 | except KeyboardInterrupt: |
|
442 | except KeyboardInterrupt: | |
437 | duration = time.time() - starttime |
|
443 | duration = time.time() - starttime | |
438 | log('INTERRUPTED: %s (after %d seconds)' % (self.name, duration)) |
|
444 | log('INTERRUPTED: %s (after %d seconds)' % (self.name, duration)) |
General Comments 0
You need to be logged in to leave comments.
Login now