mirror of
https://github.com/PowerShell/openssh-portable.git
synced 2025-07-28 08:14:24 +02:00
[regress/agent-timeout.sh] s/TIMEOUT/SSHAGENT_TIMEOUT/ Fixes conflict
with shell read-only variable.
This commit is contained in:
parent
8b2157d86a
commit
5543947d7f
@ -1,6 +1,8 @@
|
|||||||
20030909
|
20030909
|
||||||
- (tim) [regress/Makefile] Fixes for building outside of a read-only
|
- (tim) [regress/Makefile] Fixes for building outside of a read-only
|
||||||
source tree.
|
source tree.
|
||||||
|
- (tim) [regress/agent-timeout.sh] s/TIMEOUT/SSHAGENT_TIMEOUT/ Fixes conflict
|
||||||
|
with shell read-only variable.
|
||||||
|
|
||||||
20030908
|
20030908
|
||||||
- (tim) [configure.ac openbsd-compat/getrrsetbyname.c] wrap _getshort and
|
- (tim) [configure.ac openbsd-compat/getrrsetbyname.c] wrap _getshort and
|
||||||
@ -1048,4 +1050,4 @@
|
|||||||
- Fix sshd BindAddress and -b options for systems using fake-getaddrinfo.
|
- Fix sshd BindAddress and -b options for systems using fake-getaddrinfo.
|
||||||
Report from murple@murple.net, diagnosis from dtucker@zip.com.au
|
Report from murple@murple.net, diagnosis from dtucker@zip.com.au
|
||||||
|
|
||||||
$Id: ChangeLog,v 1.2973 2003/09/09 13:07:10 tim Exp $
|
$Id: ChangeLog,v 1.2974 2003/09/09 15:27:40 tim Exp $
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
|
|
||||||
tid="agent timeout test"
|
tid="agent timeout test"
|
||||||
|
|
||||||
TIMEOUT=5
|
SSHAGENT_TIMEOUT=5
|
||||||
|
|
||||||
trace "start agent"
|
trace "start agent"
|
||||||
eval `${SSHAGENT} -s` > /dev/null
|
eval `${SSHAGENT} -s` > /dev/null
|
||||||
@ -13,7 +13,7 @@ if [ $r -ne 0 ]; then
|
|||||||
else
|
else
|
||||||
trace "add keys with timeout"
|
trace "add keys with timeout"
|
||||||
for t in rsa rsa1; do
|
for t in rsa rsa1; do
|
||||||
${SSHADD} -t ${TIMEOUT} $OBJ/$t > /dev/null 2>&1
|
${SSHADD} -t ${SSHAGENT_TIMEOUT} $OBJ/$t > /dev/null 2>&1
|
||||||
if [ $? -ne 0 ]; then
|
if [ $? -ne 0 ]; then
|
||||||
fail "ssh-add did succeed exit code 0"
|
fail "ssh-add did succeed exit code 0"
|
||||||
fi
|
fi
|
||||||
@ -23,9 +23,9 @@ else
|
|||||||
if [ $n -ne 2 ]; then
|
if [ $n -ne 2 ]; then
|
||||||
fail "ssh-add -l did not return 2 keys: $n"
|
fail "ssh-add -l did not return 2 keys: $n"
|
||||||
fi
|
fi
|
||||||
trace "sleeping 2*${TIMEOUT} seconds"
|
trace "sleeping 2*${SSHAGENT_TIMEOUT} seconds"
|
||||||
sleep ${TIMEOUT}
|
sleep ${SSHAGENT_TIMEOUT}
|
||||||
sleep ${TIMEOUT}
|
sleep ${SSHAGENT_TIMEOUT}
|
||||||
${SSHADD} -l 2> /dev/null | grep 'The agent has no identities.' >/dev/null
|
${SSHADD} -l 2> /dev/null | grep 'The agent has no identities.' >/dev/null
|
||||||
if [ $? -ne 0 ]; then
|
if [ $? -ne 0 ]; then
|
||||||
fail "ssh-add -l still returns keys after timeout"
|
fail "ssh-add -l still returns keys after timeout"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user