From 9fe75f9980f71b60f2ca7ee6e963a3aadad660c3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Florent=20Thi=C3=A9ry?= <florent.thiery@ubicast.eu> Date: Fri, 2 Jun 2017 09:29:10 +0200 Subject: [PATCH] ignore /dev/md folder --- tests/test_raid.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/test_raid.py b/tests/test_raid.py index 2fbb45e0..a80245ae 100755 --- a/tests/test_raid.py +++ b/tests/test_raid.py @@ -30,7 +30,9 @@ def check_raid(dev): if os.path.isfile('/proc/mdstat'): all_ok = True for r in glob.glob('/dev/md*'): - all_ok = min(check_raid(r), all_ok) + # ignore /dev/md folder + if os.path.isfile(r): + all_ok = min(check_raid(r), all_ok) if all_ok: print_green('Everything fine') else: -- GitLab