tests: fixed unreliable password entry in radius tests

This commit is contained in:
Nikos Mavrogiannopoulos
2015-07-09 14:57:54 +02:00
parent 68f00582dd
commit 5d19fde60e
2 changed files with 5 additions and 5 deletions

View File

@@ -75,11 +75,11 @@ $ECHO_E "test" >pass-radius$TMP
$OPENCONNECT $IP:$PORT_OCSERV -u test --passwd-on-stdin -v --servercert=d66b507ae074d03b02eafca40d35f87dd81049d3 < pass-radius$TMP &
PID=$!
rm -f pass-radius$TMP
#wait for openconnect
sleep 5
rm -f pass-radius$TMP
# The client IP depends on the username so it shouldn't change.
ping -w 5 192.168.55.1
if test $? != 0;then