Project

General

Profile

Bug #17139

Unit test TestLogSupport.test_backup_count is failing

Added by Marco Mambelli over 2 years ago. Updated over 2 years ago.

Status:
Closed
Priority:
High
Category:
-
Target version:
Start date:
07/10/2017
Due date:
% Done:

0%

Estimated time:
First Occurred:
Occurs In:
Stakeholders:
Duration:

Description

Test TestLogSupport.test_backup_count from unit tests is failing manually and in Jenkins:

Error Message

False is not True : Log file rotate didn't clean up properly. Got only 5 rotation but expected 6. File list in /tmp/tmpHtNsb9: ['backupCount.count.log', 'backupCount.count.log.2017-06-28_18-23', 'backupCount.count.log.2017-06-28_18-21', 'backupCount.count.log.2017-06-28_18-22', 'backupCount.count.log.2017-06-28_18-24']

Stacktrace

Traceback (most recent call last):
  File "./test_logSupport.py", line 140, in test_backup_count
    self.assertTrue(len(file_list) == 6, "Log file rotate didn't clean up properly. Got only %s rotation but expected 6. File list in %s: %s" % (len(file_list), self.log_base_dir, file_list) )
AssertionError: False is not True : Log file rotate didn't clean up properly. Got only 5 rotation but expected 6. File list in /tmp/tmpHtNsb9: ['backupCount.count.log', 'backupCount.count.log.2017-06-28_18-23', 'backupCount.count.log.2017-06-28_18-21', 'backupCount.count.log.2017-06-28_18-22', 'backupCount.count.log.2017-06-28_18-24']

History

#1 Updated by Marco Mambelli over 2 years ago

  • Status changed from New to Closed

Could not repeat.
The test is running fine.
Closing the ticket

#2 Updated by Marco Mambelli over 2 years ago

  • Assignee set to Marco Mambelli


Also available in: Atom PDF