From 696d12522d794ba649120d659d61e01b44451027 Mon Sep 17 00:00:00 2001 From: Athmane Madjoudj Date: Mar 31 2012 19:11:57 +0000 Subject: Make attr test and tests using ping cmd more silent --- diff --git a/tests/p_attr/attr_check_installed.sh b/tests/p_attr/attr_check_installed.sh index 9c0e398..9b00b43 100755 --- a/tests/p_attr/attr_check_installed.sh +++ b/tests/p_attr/attr_check_installed.sh @@ -8,7 +8,7 @@ t_Log "Running $0 - Checking to see if setfattr, getfattr work" dd if=/dev/zero of=/tmp/attrtest.img bs=1024000 count=100 &>/dev/null t_CheckExitStatus $? -echo -e 'y\n' | mkfs.ext3 /tmp/attrtest.img +echo -e 'y\n' | mkfs.ext3 /tmp/attrtest.img > /dev/null 2>&1 mkdir /mnt/attr_test mount -t ext3 -o loop,user_xattr /tmp/attrtest.img /mnt/attr_test diff --git a/tests/p_iptables/iptables_function-check_test.sh b/tests/p_iptables/iptables_function-check_test.sh index 53475f6..66337c4 100755 --- a/tests/p_iptables/iptables_function-check_test.sh +++ b/tests/p_iptables/iptables_function-check_test.sh @@ -23,7 +23,7 @@ fi # Applying ACL iptables -I ${ACL} -ping -q -c $COUNT -i 0.25 -w $DEADTIME 127.0.0.1 +ping -q -c $COUNT -i 0.25 -w $DEADTIME 127.0.0.1 > /dev/null 2>&1 if [ $? == 1 ] then t_Log "iptables REJECT works fine" diff --git a/tests/p_tcpdump/tcpdump_eth0.sh b/tests/p_tcpdump/tcpdump_eth0.sh index ddd7ae6..a091231 100755 --- a/tests/p_tcpdump/tcpdump_eth0.sh +++ b/tests/p_tcpdump/tcpdump_eth0.sh @@ -16,7 +16,7 @@ if [[ $IP =~ $regex ]] tcpdump -q -n -p -i eth0 -w $FILE & # If we don't wait a short time, the first paket will be missed by tcpdump sleep 1 - ping -q -c $COUNT -i 0.25 ${BASH_REMATCH[1]} + ping -q -c $COUNT -i 0.25 ${BASH_REMATCH[1]} > /dev/null 2>&1 sleep 1 killall -s SIGINT tcpdump sleep 1 diff --git a/tests/p_tcpdump/tcpdump_lo.sh b/tests/p_tcpdump/tcpdump_lo.sh index 02624b9..1347168 100755 --- a/tests/p_tcpdump/tcpdump_lo.sh +++ b/tests/p_tcpdump/tcpdump_lo.sh @@ -11,7 +11,7 @@ COUNT='4' tcpdump -q -n -p -i lo -w $FILE & # If we don't wait a short time, the first paket will be missed by tcpdump sleep 1 -ping -q -c $COUNT -i 0.25 127.0.0.1 +ping -q -c $COUNT -i 0.25 127.0.0.1 > /dev/null 2>&1 sleep 1 killall -s SIGINT tcpdump sleep 1 diff --git a/tests/p_tcpdump/tcpdump_lo_ipv6.sh b/tests/p_tcpdump/tcpdump_lo_ipv6.sh index 25be92e..c6929ae 100755 --- a/tests/p_tcpdump/tcpdump_lo_ipv6.sh +++ b/tests/p_tcpdump/tcpdump_lo_ipv6.sh @@ -16,7 +16,7 @@ if [[ $IP =~ $regex ]] tcpdump -q -n -p -i lo -w $FILE & # If we don't wait a short time, the first paket will be missed by tcpdump sleep 1 - ping6 -q -c $COUNT -i 0.25 ::1 + ping6 -q -c $COUNT -i 0.25 ::1 > /dev/null 2>&1 sleep 1 killall -s SIGINT tcpdump sleep 1