diff --git a/lib/src/clixon_validate_minmax.c b/lib/src/clixon_validate_minmax.c index 47c9a4f9..c87ce6ac 100644 --- a/lib/src/clixon_validate_minmax.c +++ b/lib/src/clixon_validate_minmax.c @@ -658,7 +658,6 @@ xml_yang_minmax_recurse(cxobj *xt, yt = xml_spec(xt); /* If yt == NULL, then no gap-analysis is done */ while ((x = xml_child_each(xt, x, CX_ELMNT)) != NULL){ - clicon_debug(1, "%s x:%s", __FUNCTION__, xml_name(x)); if ((y = xml_spec(x)) == NULL) continue; keyw = yang_keyword_get(y); diff --git a/test/test_snmp_entity.sh b/test/test_snmp_entity.sh index 7ebd7273..b780ab9e 100755 --- a/test/test_snmp_entity.sh +++ b/test/test_snmp_entity.sh @@ -136,6 +136,17 @@ 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 } ENTITY_OID=".1.3.6.1.2.1.47.1.1.1" diff --git a/test/test_snmp_get.sh b/test/test_snmp_get.sh index bb1a38d5..e8d10703 100755 --- a/test/test_snmp_get.sh +++ b/test/test_snmp_get.sh @@ -132,6 +132,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" diff --git a/test/test_snmp_ifmib.sh b/test/test_snmp_ifmib.sh index ee703589..69e85241 100755 --- a/test/test_snmp_ifmib.sh +++ b/test/test_snmp_ifmib.sh @@ -195,13 +195,21 @@ 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" testinit - # IF-MIB::interfaces MIB=".1.3.6.1.2.1" for (( i=1; i<23; i++ )); do diff --git a/test/test_snmp_rowstatus.sh b/test/test_snmp_rowstatus.sh index e92776d5..87c4b28b 100755 --- a/test/test_snmp_rowstatus.sh +++ b/test/test_snmp_rowstatus.sh @@ -206,6 +206,16 @@ function testrun_removeRows() 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" diff --git a/test/test_snmp_system.sh b/test/test_snmp_system.sh index fdfdf440..bbee27de 100755 --- a/test/test_snmp_system.sh +++ b/test/test_snmp_system.sh @@ -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"