Show More
@@ -515,13 +515,6 b' class Test(object):' | |||
|
515 | 515 | else: |
|
516 | 516 | self._result = self.success() |
|
517 | 517 | |
|
518 | if (ret != 0 or out != self._refout) and not self._skipped \ | |
|
519 | and not options.debug: | |
|
520 | f = open(self._errpath, 'wb') | |
|
521 | for line in out: | |
|
522 | f.write(line) | |
|
523 | f.close() | |
|
524 | ||
|
525 | 518 | if not self._unittest: |
|
526 | 519 | self.tearDown() |
|
527 | 520 | |
@@ -532,6 +525,13 b' class Test(object):' | |||
|
532 | 525 | if not self._options.keep_tmpdir: |
|
533 | 526 | shutil.rmtree(self._testtmp) |
|
534 | 527 | |
|
528 | if (self._ret != 0 or self._out != self._refout) and not self._skipped \ | |
|
529 | and not self._options.debug and self._out: | |
|
530 | f = open(self._errpath, 'wb') | |
|
531 | for line in self._out: | |
|
532 | f.write(line) | |
|
533 | f.close() | |
|
534 | ||
|
535 | 535 | vlog("# Ret was:", self._ret) |
|
536 | 536 | |
|
537 | 537 | # Don't print progress in unittest mode because that is handled |
General Comments 0
You need to be logged in to leave comments.
Login now