Test: killed backend in snmp tests
This commit is contained in:
parent
575429caa1
commit
dd1e5966fb
6 changed files with 51 additions and 3 deletions
|
|
@ -121,6 +121,16 @@ function testinit(){
|
|||
|
||||
function testexit(){
|
||||
stop_snmp
|
||||
if [ $BE -ne 0 ]; then
|
||||
new "Kill backend"
|
||||
# Check if premature kill
|
||||
pid=$(pgrep -u root -f clixon_backend)
|
||||
if [ -z "$pid" ]; then
|
||||
err "backend already dead"
|
||||
fi
|
||||
# kill backend
|
||||
stop_backend -f $cfg
|
||||
fi
|
||||
}
|
||||
|
||||
new "SNMP tests"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue