diff --git a/tests/test_backup.py b/tests/test_backup.py index 73b2a4cc145603e8fc6e65d2034156ed195b8ec1..fb26fe3c02b795999a4dc6c1e18c2a7aa584a318 100755 --- a/tests/test_backup.py +++ b/tests/test_backup.py @@ -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: