summaryrefslogtreecommitdiff
path: root/regress
diff options
context:
space:
mode:
Diffstat (limited to 'regress')
-rw-r--r--regress/test-exec.sh10
1 files changed, 6 insertions, 4 deletions
diff --git a/regress/test-exec.sh b/regress/test-exec.sh
index aa4e6e5c0..29dac3de9 100644
--- a/regress/test-exec.sh
+++ b/regress/test-exec.sh
@@ -1,4 +1,4 @@
1# $OpenBSD: test-exec.sh,v 1.37 2010/02/24 06:21:56 djm Exp $ 1# $OpenBSD: test-exec.sh,v 1.38 2013/03/23 11:09:43 dtucker Exp $
2# Placed in the Public Domain. 2# Placed in the Public Domain.
3 3
4#SUDO=sudo 4#SUDO=sudo
@@ -309,9 +309,11 @@ rm -f $OBJ/known_hosts $OBJ/authorized_keys_$USER
309trace "generate keys" 309trace "generate keys"
310for t in rsa rsa1; do 310for t in rsa rsa1; do
311 # generate user key 311 # generate user key
312 rm -f $OBJ/$t 312 if [ ! -f $OBJ/$t ] || [ ${SSHKEYGEN} -nt $OBJ/$t ]; then
313 ${SSHKEYGEN} -b 1024 -q -N '' -t $t -f $OBJ/$t ||\ 313 rm -f $OBJ/$t
314 fail "ssh-keygen for $t failed" 314 ${SSHKEYGEN} -q -N '' -t $t -f $OBJ/$t ||\
315 fail "ssh-keygen for $t failed"
316 fi
315 317
316 # known hosts file for client 318 # known hosts file for client
317 ( 319 (