Skip to content

Commit

Permalink
test: temporary fixes DROP BE BEFORE PUSH
Browse files Browse the repository at this point in the history
Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
  • Loading branch information
troglobit committed Feb 14, 2023
1 parent 1283270 commit e36a4e3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions test/lib.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down
3 changes: 2 additions & 1 deletion test/test_restconf_internal.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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>$"
Expand Down Expand Up @@ -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 ^.
Expand Down

0 comments on commit e36a4e3

Please sign in to comment.