summaryrefslogtreecommitdiff
path: root/regress
diff options
context:
space:
mode:
authorDarren Tucker <dtucker@cvs.openbsd.org>2020-04-04 23:04:42 +0000
committerDarren Tucker <dtucker@cvs.openbsd.org>2020-04-04 23:04:42 +0000
commitda2785c74e2537a2fde41cecf057dbe11b51958b (patch)
tree765b0be14c9a753cbc278fc2c69d237c6f9d9715 /regress
parent734493dfe6b0f1626f876b7f1ed29218713fef39 (diff)
Indicate if we're using a cached key in trace output.
Diffstat (limited to 'regress')
-rw-r--r--regress/usr.bin/ssh/test-exec.sh6
1 files changed, 4 insertions, 2 deletions
diff --git a/regress/usr.bin/ssh/test-exec.sh b/regress/usr.bin/ssh/test-exec.sh
index e1980ffe5a3..e6994f7d7c8 100644
--- a/regress/usr.bin/ssh/test-exec.sh
+++ b/regress/usr.bin/ssh/test-exec.sh
@@ -1,4 +1,4 @@
-# $OpenBSD: test-exec.sh,v 1.75 2020/01/31 23:25:08 djm Exp $
+# $OpenBSD: test-exec.sh,v 1.76 2020/04/04 23:04:41 dtucker Exp $
# Placed in the Public Domain.
USER=`id -un`
@@ -377,11 +377,13 @@ SSH_HOSTKEY_TYPES=`$SSH -Q key-plain | maybe_filter_sk`
for t in ${SSH_KEYTYPES}; do
# generate user key
- trace "generating key type $t"
if [ ! -f $OBJ/$t ] || [ ${SSHKEYGEN} -nt $OBJ/$t ]; then
+ trace "generating key type $t"
rm -f $OBJ/$t
${SSHKEYGEN} -q -N '' -t $t -f $OBJ/$t ||\
fail "ssh-keygen for $t failed"
+ else
+ trace "using cached key type $t"
fi
# setup authorized keys