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

fix path, refs #21504

parent 58041629
No related branches found
No related tags found
No related merge requests found
...@@ -32,8 +32,8 @@ def test_ssh(ip): ...@@ -32,8 +32,8 @@ def test_ssh(ip):
def test_last_backup_is_recent(server): def test_last_backup_is_recent(server):
client = socket.gethostname() client = socket.gethostname()
path = '/backup/%s/home/current' % client path = '/backup/%s/home/latest' % client
cmd = 'ssh -o StrictHostKeyChecking=no %s ls -l %s | grep current' % (server, path) cmd = 'ssh -o StrictHostKeyChecking=no %s ls -l %s | grep latest' % (server, path)
status, out = subprocess.getstatusoutput(cmd) status, out = subprocess.getstatusoutput(cmd)
if status == 0: if status == 0:
date = out.strip().split(' ')[-2] date = out.strip().split(' ')[-2]
......
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