summaryrefslogtreecommitdiff
path: root/regress/agent-timeout.sh
diff options
context:
space:
mode:
authorTim Rice <tim@multitalents.net>2003-09-09 08:27:40 -0700
committerTim Rice <tim@multitalents.net>2003-09-09 08:27:40 -0700
commit5543947d7f022e1bc705aecce6761b00e8cba02f (patch)
treea305e4d68bf56ec49e1f929717cf05e3257dc28f /regress/agent-timeout.sh
parent8b2157d86ae1e9a36f200d61597b84322857db8e (diff)
[regress/agent-timeout.sh] s/TIMEOUT/SSHAGENT_TIMEOUT/ Fixes conflict
with shell read-only variable.
Diffstat (limited to 'regress/agent-timeout.sh')
-rw-r--r--regress/agent-timeout.sh10
1 files changed, 5 insertions, 5 deletions
diff --git a/regress/agent-timeout.sh b/regress/agent-timeout.sh
index 01d6580a..d943b584 100644
--- a/regress/agent-timeout.sh
+++ b/regress/agent-timeout.sh
@@ -3,7 +3,7 @@
tid="agent timeout test"
-TIMEOUT=5
+SSHAGENT_TIMEOUT=5
trace "start agent"
eval `${SSHAGENT} -s` > /dev/null
@@ -13,7 +13,7 @@ if [ $r -ne 0 ]; then
else
trace "add keys with timeout"
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
fail "ssh-add did succeed exit code 0"
fi
@@ -23,9 +23,9 @@ else
if [ $n -ne 2 ]; then
fail "ssh-add -l did not return 2 keys: $n"
fi
- trace "sleeping 2*${TIMEOUT} seconds"
- sleep ${TIMEOUT}
- sleep ${TIMEOUT}
+ trace "sleeping 2*${SSHAGENT_TIMEOUT} seconds"
+ sleep ${SSHAGENT_TIMEOUT}
+ sleep ${SSHAGENT_TIMEOUT}
${SSHADD} -l 2> /dev/null | grep 'The agent has no identities.' >/dev/null
if [ $? -ne 0 ]; then
fail "ssh-add -l still returns keys after timeout"