- Fixed [clixon_proc can't start new process with PATH env #202](https://github.com/clicon/clixon/issues/202)

- Memory errors in tests
This commit is contained in:
Olof hagsand 2021-04-14 17:01:17 +02:00
parent 1af3a7bcfe
commit 172cfd69b3
7 changed files with 28 additions and 17 deletions

View file

@ -169,15 +169,12 @@ pid1=$pid
if [ $pid1 -eq 0 ]; then err "Pid" 0; fi
new "Check $pid1 exists"
while kill -0 $pid1 2> /dev/null; do
while sudo kill -0 $pid1 2> /dev/null; do
new "kill $pid1 externally"
sudo kill $pid1
sleep $DEMSLEEP
done
new "3. get status: Check killed"
rpcstatus false stopped
if [ $pid -ne 0 ]; then err "Pid" "$pid"; fi
@ -353,7 +350,7 @@ if [ $pid1 -eq $pid2 ]; then
fi
new "Get restconf config 2: no server"
expectpart "$(curl $CURLOPTS -X GET -H 'Accept: application/yang-data+xml' $RCPROTO://localhost/restconf/data/clixon-restconf:restconf 2>&1)" 7 "Failed to connect" "Connection refused"
expectpart "$(curl $CURLOPTS -X GET -H 'Accept: application/yang-data+xml' $RCPROTO://localhost/restconf/data/clixon-restconf:restconf 2>&1)" 7 # curl 7.58: "Failed to connect" "Connection refused", curl 7.74: "Couldn't connect to server"
if [ $BE -ne 0 ]; then
new "Kill backend"