From 5ebb14b84e2b341fbc3e8739065be01dbc69b47c 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:20:10 +0200 Subject: [PATCH] descend another depth in the folders, refs #21677 --- tests/test_backup.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tests/test_backup.py b/tests/test_backup.py index ea8301a5..f46a355b 100755 --- a/tests/test_backup.py +++ b/tests/test_backup.py @@ -83,8 +83,9 @@ def check_local_backup(path): else: print('Backup %s is fine' % subd) else: - print('Backup %s is not okay (no %s file)' % (subd, latest)) - all_ok = False + for dd in os.listdir(subd): + subsubd = os.path.join(subd, dd) + all_ok = min(all_ok, check_local_backup(subsubd)) return all_ok -- GitLab