tests: fixed unreliable password entry in PAM test

This commit is contained in:
Nikos Mavrogiannopoulos
2015-07-10 10:54:03 +02:00
parent 48dc6c8ca1
commit 8b4bc75b3f

View File

@@ -89,11 +89,12 @@ cat pass-pam.tmp
$OPENCONNECT $IP:$PORT_OCSERV -u testuser --passwd-on-stdin --servercert=d66b507ae074d03b02eafca40d35f87dd81049d3 < pass-pam.tmp &
PID=$!
rm -f pass-pam.tmp
#wait for openconnect
sleep 5
rm -f pass-pam.tmp
# The client IP depends on the username so it shouldn't change.
ping -w 5 192.168.56.1
if test $? != 0;then