Example #1
0
 def startTest(self, test):
     """Record the logs positions when the test starts."""
     for log in self._abspath_logs:
         if os.path.exists(log):
             self._logs_positions[log] = os.stat(log).st_size
         else:
             self._logs_positions[log] = 0
     TestResultDecorator.startTest(self, test)
Example #2
0
 def startTest(self, test):
     """Record the logs positions when the test starts."""
     for log in self._abspath_logs:
         if os.path.exists(log):
             self._logs_positions[log] = os.stat(log).st_size
         else:
             self._logs_positions[log] = 0
     TestResultDecorator.startTest(self, test)