From 0c2fc1be9168868abc5431f89c07ab4c64f343aa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Florent=20Thi=C3=A9ry?= <florent.thiery@ubicast.eu> Date: Thu, 1 Jun 2017 11:16:37 +0200 Subject: [PATCH] test all folders, refs #21677 --- tests/test_backup.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/tests/test_backup.py b/tests/test_backup.py index c94bc682..ea8301a5 100755 --- a/tests/test_backup.py +++ b/tests/test_backup.py @@ -68,6 +68,7 @@ def test_backup_space(server): def check_local_backup(path): + all_ok = True for d in os.listdir(path): subd = os.path.join(path, d) latest = os.path.join(subd, 'latest') @@ -78,13 +79,13 @@ def check_local_backup(path): diff_seconds = (now - d).total_seconds() if diff_seconds > 25*3600: print('Backup %s is older than a day' % subd) - return False + all_ok = False else: print('Backup %s is fine' % subd) - return True else: print('Backup %s is not okay (no %s file)' % (subd, latest)) - return False + all_ok = False + return all_ok def check_local_backups(paths): -- GitLab