コード例 #1
0
 def delete_files(self):
     """Deletes code coverage files."""
     if os.getenv('USE_FIGLEAF', None):
         logger.info('Deleting coverage files...')
         try:
             RemoveFiles.local('Remove coverage file', self.filename)
             directory = os.path.dirname(self.filename)
             RemoveFiles.local('Remove html files', directory + '/*.html')
         except:
             logger.error('Failed to clean up coverage files')