diff --git a/tests/test_raid.py b/tests/test_raid.py index ba138c9f4fd8ba3cd9d99aebb12d735e5a2aca98..ce9618d891e11b8065e846a344b4214e756d57b9 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