diff --git a/tests/test_backup.py b/tests/test_backup.py index ea8301a5fea4300b9dec37c2501207db62e92d8b..f46a355b764461b22af15e8bdcc50896421e8521 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