Skip to content
Snippets Groups Projects
Commit be51ab7b authored by Florent Thiery's avatar Florent Thiery
Browse files

fix return codes, refs #20687

parent e372f5da
No related branches found
No related tags found
No related merge requests found
......@@ -28,6 +28,7 @@ def test_last_backup_is_recent(server, client):
print('Backup is older than 2 days')
return False
else:
print('There is a backup that is less than 2 days old, this is fine')
return True
else:
return False
......@@ -42,8 +43,10 @@ if os.path.isfile('../utils.py'):
print('Failed to ssh into backup server')
sys.exit(1)
else:
test_last_backup_is_recent(BURP_SERVER, BURP_CLIENT_NAME)
if not test_last_backup_is_recent(BURP_SERVER, BURP_CLIENT_NAME):
sys.exit(1)
else:
sys.exit(0)
else:
sys.exit(2)
else:
......
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