test: temporary fixes DROP BE BEFORE PUSH
Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
This commit is contained in:
parent
1283270504
commit
e36a4e3016
2 changed files with 4 additions and 3 deletions
|
|
@ -554,7 +554,7 @@ function stop_backend(){
|
||||||
sleep 1
|
sleep 1
|
||||||
checkvalgrind
|
checkvalgrind
|
||||||
fi
|
fi
|
||||||
sudo pkill -f clixon_backend # extra ($BUSER?)
|
# sudo pkill -f clixon_backend # extra ($BUSER?)
|
||||||
}
|
}
|
||||||
|
|
||||||
# Wait for restconf to stop sending 502 Bad Gateway
|
# Wait for restconf to stop sending 502 Bad Gateway
|
||||||
|
|
@ -638,7 +638,7 @@ function wait_restconf(){
|
||||||
sleep 2 # some problems with valgrind
|
sleep 2 # some problems with valgrind
|
||||||
fi
|
fi
|
||||||
|
|
||||||
stty $STTYSETTINGS
|
stty $STTYSETTINGS >/dev/null
|
||||||
}
|
}
|
||||||
|
|
||||||
# Wait for restconf to stop
|
# Wait for restconf to stop
|
||||||
|
|
|
||||||
|
|
@ -115,7 +115,7 @@ EOF
|
||||||
err "No pid return value" "$retx"
|
err "No pid return value" "$retx"
|
||||||
fi
|
fi
|
||||||
if $active; then
|
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
|
else
|
||||||
# inactive, no startime or pid
|
# 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>$"
|
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
|
fi
|
||||||
# kill backend
|
# kill backend
|
||||||
stop_backend -f $cfg
|
stop_backend -f $cfg
|
||||||
|
killall clixon_restconf
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Restconf is enabled and restconf was running but was killed by stop ^.
|
# Restconf is enabled and restconf was running but was killed by stop ^.
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue