test: temporary fixes DROP BE BEFORE PUSH

Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
This commit is contained in:
Joachim Wiberg 2023-02-14 15:39:13 +01:00
parent 1283270504
commit e36a4e3016
2 changed files with 4 additions and 3 deletions

View file

@ -554,7 +554,7 @@ function stop_backend(){
sleep 1
checkvalgrind
fi
sudo pkill -f clixon_backend # extra ($BUSER?)
# sudo pkill -f clixon_backend # extra ($BUSER?)
}
# Wait for restconf to stop sending 502 Bad Gateway
@ -638,7 +638,7 @@ function wait_restconf(){
sleep 2 # some problems with valgrind
fi
stty $STTYSETTINGS
stty $STTYSETTINGS >/dev/null
}
# Wait for restconf to stop

View file

@ -115,7 +115,7 @@ EOF
err "No pid return value" "$retx"
fi
if $active; then
expect="^<rpc-reply $DEFAULTNS><active $LIBNS>$active</active><description $LIBNS>Clixon RESTCONF process</description><command $LIBNS>/.*/clixon_restconf -f $cfg -D [0-9] .*</command><status $LIBNS>$status</status><starttime $LIBNS>20[0-9][0-9]\-[0-9][0-9]\-[0-9][0-9]T[0-9][0-9]:[0-9][0-9]:[0-9][0-9]\.[0-9]*Z</starttime><pid $LIBNS>$pid</pid></rpc-reply>$"
expect="^<rpc-reply $DEFAULTNS><active $LIBNS>$active</active><description $LIBNS>Clixon RESTCONF process</description><command $LIBNS>/.*/clixon_restconf -f $cfg -D [0-9] .*</command><status $LIBNS>$status</status><starttime $LIBNS>20[0-9][0-9]-[0-9][0-9]-[0-9][0-9]T[0-9][0-9]:[0-9][0-9]:[0-9][0-9]\.[0-9]*Z</starttime><pid $LIBNS>$pid</pid></rpc-reply>$"
else
# inactive, no startime or pid
expect="^<rpc-reply $DEFAULTNS><active $LIBNS>$active</active><description $LIBNS>Clixon RESTCONF process</description><command $LIBNS>/.*/clixon_restconf -f $cfg -D [0-9] .*</command><status $LIBNS>$status</status></rpc-reply>$"
@ -320,6 +320,7 @@ if [ $BE -ne 0 ]; then
fi
# kill backend
stop_backend -f $cfg
killall clixon_restconf
fi
# Restconf is enabled and restconf was running but was killed by stop ^.