From 31ce85b6827da82faa36d8270ea89aea72c30529 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:36:39 +0200 Subject: [PATCH] add color --- tests/test_raid.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/test_raid.py b/tests/test_raid.py index ffce2648..ba138c9f 100755 --- a/tests/test_raid.py +++ b/tests/test_raid.py @@ -30,6 +30,10 @@ if os.path.isfile('/proc/mdstat'): all_ok = True for r in glob.glob('/dev/md*'): all_ok = min(check_raid(r), all_ok) + if all_ok: + print_green('Everything fine') + else: + print_red('Some array is in bad shape') sys.exit(not all_ok) else: print('No software RAID array found, untestable') -- GitLab