mirror of
https://gitlab.com/openconnect/ocserv.git
synced 2026-02-10 00:37:00 +08:00
tests: fixed unreliable password entry in PAM test
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user