##// END OF EJS Templates
run-tests: move err file writing to tearDown()
Gregory Szorc -
r21455:0f0bace8 default
parent child Browse files
Show More
@@ -515,13 +515,6 b' class Test(object):'
515 else:
515 else:
516 self._result = self.success()
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 if not self._unittest:
518 if not self._unittest:
526 self.tearDown()
519 self.tearDown()
527
520
@@ -532,6 +525,13 b' class Test(object):'
532 if not self._options.keep_tmpdir:
525 if not self._options.keep_tmpdir:
533 shutil.rmtree(self._testtmp)
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 vlog("# Ret was:", self._ret)
535 vlog("# Ret was:", self._ret)
536
536
537 # Don't print progress in unittest mode because that is handled
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