diff --git a/tests/test_backup.py b/tests/test_backup.py index 7d734b857a758e811707018fa114b3182b38c570..264a7049e426ec014d21a7f595695bd6ee2fa70a 100755 --- a/tests/test_backup.py +++ b/tests/test_backup.py @@ -37,7 +37,7 @@ def test_last_backup_is_recent(server): status, out = subprocess.getstatusoutput(cmd) if status == 0: date = out.strip().split(' ')[-2] - pdate = datetime.strptime(date, '%Y-%m-%d') + pdate = datetime.strptime(date, '%Y-%m-%d-%HMS') if (datetime.now() - pdate).days > 2: print('Backup is older than 2 days') return False