diff --git a/tests/test_backup.py b/tests/test_backup.py index 5b8a40840f21853efcdb650b19b66af0aa3142c3..09c2a66cf2ebfb9bb941873e552f13bb7b1caea2 100755 --- a/tests/test_backup.py +++ b/tests/test_backup.py @@ -70,14 +70,15 @@ def test_backup_space(server): def check_local_backup(path): all_ok = True backup_folder = os.path.dirname(path) + print('Checking %s' % backup_folder) latest = os.path.join(backup_folder, 'latest') if os.path.exists(latest): mtime = os.path.getmtime(latest) d = datetime.fromtimestamp(mtime) now = datetime.now() diff_seconds = (now - d).total_seconds() - if diff_seconds > 25*3600: - print('Backup %s is older than a day' % backup_folder) + if diff_seconds > 48*3600: + print('Backup %s is older than 48h' % backup_folder) all_ok = False else: print('Backup %s is fine' % backup_folder)