Skip to content
Snippets Groups Projects
Commit 987d4ad9 authored by Nicolas KAROLAK's avatar Nicolas KAROLAK
Browse files

fix(tests): missing success information

parent 239b32d5
No related branches found
No related tags found
No related merge requests found
......@@ -99,7 +99,6 @@ def check_backup_is_incremental(path: str) -> bool:
print("Checking that backup is incremental:")
dirs = os.listdir(path)
is_incremental = True
for directory in dirs:
files_count = 0
folder_path = os.path.join(path, directory)
......@@ -107,10 +106,11 @@ def check_backup_is_incremental(path: str) -> bool:
files_count = len(os.listdir(folder_path))
if files_count == 0:
u.error("Folder {} is empty".format(folder_path))
is_incremental = False
os.rmdir(folder_path)
return False
u.success("Folder {} is not empty".format(folder_path))
return is_incremental
return True
def check_local_backup(path: str) -> bool:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment