From 24eca335187376d92c45d5f8814a68aadb5d2ed0 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:39:48 +0200 Subject: [PATCH] print status only if in bad shape --- tests/test_raid.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/test_raid.py b/tests/test_raid.py index ce9618d8..732841b4 100755 --- a/tests/test_raid.py +++ b/tests/test_raid.py @@ -33,6 +33,9 @@ if os.path.isfile('/proc/mdstat'): print_green('Everything fine') else: print_red('Some array is in bad shape') + with open('/proc/mdstat', 'r') as f: + d = f.read() + print(d) sys.exit(not all_ok) else: print('No software RAID array found, untestable') -- GitLab