Show More
@@ -514,16 +514,6 b' class Test(object):' | |||||
514 | self._result = self.success() |
|
514 | self._result = self.success() | |
515 |
|
515 | |||
516 |
|
516 | |||
517 | vlog("# Ret was:", ret) |
|
|||
518 |
|
||||
519 | # Don't print progress in unittest mode because that is handled |
|
|||
520 | # by TestResult. |
|
|||
521 | if not options.verbose and not self._unittest: |
|
|||
522 | iolock.acquire() |
|
|||
523 | sys.stdout.write(self._result[0]) |
|
|||
524 | sys.stdout.flush() |
|
|||
525 | iolock.release() |
|
|||
526 |
|
||||
527 | if not self._unittest: |
|
517 | if not self._unittest: | |
528 | self.tearDown() |
|
518 | self.tearDown() | |
529 |
|
519 | |||
@@ -531,6 +521,16 b' class Test(object):' | |||||
531 |
|
521 | |||
532 | def tearDown(self): |
|
522 | def tearDown(self): | |
533 | """Tasks to perform after run().""" |
|
523 | """Tasks to perform after run().""" | |
|
524 | vlog("# Ret was:", self._ret) | |||
|
525 | ||||
|
526 | # Don't print progress in unittest mode because that is handled | |||
|
527 | # by TestResult. | |||
|
528 | if not self._options.verbose and not self._unittest: | |||
|
529 | iolock.acquire() | |||
|
530 | sys.stdout.write(self._result[0]) | |||
|
531 | sys.stdout.flush() | |||
|
532 | iolock.release() | |||
|
533 | ||||
534 | self._runner.times.append((self.name, self._duration)) |
|
534 | self._runner.times.append((self.name, self._duration)) | |
535 |
|
535 | |||
536 | def _run(self, testtmp, replacements, env): |
|
536 | def _run(self, testtmp, replacements, env): |
General Comments 0
You need to be logged in to leave comments.
Login now