From d4811465f8a6af9d6afe93d8092ed83794294ce8 Mon Sep 17 00:00:00 2001 From: Alexander Barton Date: Tue, 15 Nov 2011 11:58:05 +0100 Subject: [PATCH] RAID.tst: suppress warning and error messages --- client/lib/tests/RAID.tst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/client/lib/tests/RAID.tst b/client/lib/tests/RAID.tst index 074113d..d814588 100644 --- a/client/lib/tests/RAID.tst +++ b/client/lib/tests/RAID.tst @@ -5,7 +5,7 @@ SERVICE="RAID_p" if [ `uname` = "Darwin" ]; then tmp=`mktemp "/tmp/$$.XXXX"` - LC_ALL=C diskutil checkRAID >"$tmp" + LC_ALL=C diskutil checkRAID >"$tmp" 2>/dev/null if [ $? -eq 0 ]; then # Apple Software-RAID detected statusString1=`grep "^Status:" "$tmp" | uniq` @@ -20,7 +20,7 @@ if [ `uname` = "Darwin" ]; then TEXT="OK - RAID status is good." fi fi - LC_ALL=C raidutil list status | grep "RAID " >"$tmp" + LC_ALL=C raidutil list status 2>/dev/null | grep "RAID " >"$tmp" if [ $? -eq 0 ]; then # Apple Hardware-RAID detected declare -i good=0 -- 2.39.2