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

backups test: skip disabled

parent 16d455f2
No related branches found
No related tags found
No related merge requests found
......@@ -150,7 +150,11 @@ def check_local_backup(path: str) -> bool:
all_ok = True
latest = os.path.join(backup_folder, "latest")
if os.path.exists(latest):
if backup_folder.endswith(".disabled"):
# skip if disabled
u.warning("disabled")
all_ok = False
elif os.path.exists(latest):
# resolve symbolic link
latest = os.path.realpath(latest)
latest_date = os.path.basename(latest)
......
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