From 7f54e292b2490278f067b65e923b8dabb5caa285 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Florent=20Thi=C3=A9ry?= <florent.thiery@ubicast.eu>
Date: Thu, 1 Jun 2017 12:38:36 +0200
Subject: [PATCH] fix test interpretation

---
 tests/test_raid.py | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/tests/test_raid.py b/tests/test_raid.py
index ba138c9f..ce9618d8 100755
--- a/tests/test_raid.py
+++ b/tests/test_raid.py
@@ -23,8 +23,7 @@ def print_green(string):
 def check_raid(dev):
     cmd = 'mdadm -D %s' % dev
     status, output = subprocess.getstatusoutput(cmd)
-    print(output)
-    return status != 0
+    return status == 0 
 
 if os.path.isfile('/proc/mdstat'):
     all_ok = True
-- 
GitLab