Check if we have Net-SNMP support enabled before trying to run SNMP tests.
This commit is contained in:
parent
e106fa4e5c
commit
1e05207fd5
2 changed files with 8 additions and 0 deletions
|
|
@ -11,6 +11,11 @@ if [ $valgrindtest -ne 0 ]; then
|
|||
return 0 # skip
|
||||
fi
|
||||
|
||||
if [ ${WITH_NETSNMP} != "yes" ]; then
|
||||
echo "Skipping test, Net-SNMP support not enabled."
|
||||
if [ "$s" = $0 ]; then exit 0; else return 0; fi
|
||||
fi
|
||||
|
||||
snmpd=$(type -p snmpd)
|
||||
snmpget="$(type -p snmpget) -c public -v2c localhost:1161 "
|
||||
snmpset="$(type -p snmpset) -c public -v2c localhost:1161 "
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue