From 50655059d2d57ab1edd9fa000b4e2a7e10d5f1a3 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Florent=20Thi=C3=A9ry?= <florent.thiery@ubicast.eu>
Date: Thu, 2 Mar 2017 15:51:17 +0100
Subject: [PATCH] fix ssh test

---
 tests/test_backup.py | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/tests/test_backup.py b/tests/test_backup.py
index 1aa9ede1..383148f6 100755
--- a/tests/test_backup.py
+++ b/tests/test_backup.py
@@ -13,7 +13,8 @@ import imp
 os.chdir(os.path.dirname(__file__))
 
 def test_ssh(server):
-    return subprocess.getstatus('ssh %s ls /tmp' % server) == 0
+    status, out = subprocess.getstatusoutput('ssh %s ls /tmp' % server) 
+    return status == 0
 
 def test_last_backup_is_recent(server, client):
     path = '/backup/%s/current' % client
-- 
GitLab