From d63feb7026b06a49b3c91cf2546789fdf122cc52 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Florent=20Thi=C3=A9ry?= <florent.thiery@ubicast.eu>
Date: Wed, 8 Nov 2017 18:14:45 +0100
Subject: [PATCH] improve log message

---
 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 f44dda19..8c57428a 100755
--- a/tests/test_backup.py
+++ b/tests/test_backup.py
@@ -85,13 +85,14 @@ def check_backup_is_incremental(path):
 
     for d in dirs:
         num_folders = 0
-        if os.path.isdir(os.path.join(path, d)):
+        folder_path = os.path.join(path, d)
+        if os.path.isdir(folder_path):
             media = glob.glob(os.path.join(path, d, "*/msinstance/media/resources/"))
             for m in media:
                 num_folders += len(os.listdir(m))
             print('%s: %s' % (d, num_folders))
             if num_folders == 0:
-                print('Folder %s is empty, this indicates non-incremental backups (we are expecting links)' % d)
+                print('Folder %s is empty, this indicates non-incremental backups (we are expecting links)' % folder_path)
                 return False
     return True
 
-- 
GitLab