From 55ca06d9a756bf1777c3029d754d9dcfa037a8a6 Mon Sep 17 00:00:00 2001 From: Athmane Madjoudj Date: Nov 14 2011 17:24:18 +0000 Subject: Fix snmp v3 test --- diff --git a/tests/p_net-snmp/snmpv3_test.sh b/tests/p_net-snmp/snmpv3_test.sh index 8fdff53..1c27351 100755 --- a/tests/p_net-snmp/snmpv3_test.sh +++ b/tests/p_net-snmp/snmpv3_test.sh @@ -16,9 +16,10 @@ service snmpd restart #Run test snmpget -v 3 -u centosro -n "" -l authPriv -a MD5 -A centosro -x DES -X centosro 127.0.0.1 sysUpTime.0 > /dev/null 2>&1 +ret_val=$? # Restore settings /bin/cp /etc/snmp/snmpd.conf.orig /etc/snmp/snmpd.conf service snmpd restart -t_CheckExitStatus $? +t_CheckExitStatus $ret_val