[PATCH] keytype.sh: drop usage of `time`

Mike Frysinger vapier at gentoo.org
Tue Mar 21 04:46:40 AEDT 2017


This doesn't provide any useful info and just makes it harder to
diff the log outputs between diff test runs.
---
 regress/keytype.sh | 9 ++-------
 1 file changed, 2 insertions(+), 7 deletions(-)

diff --git a/regress/keytype.sh b/regress/keytype.sh
index 8f697788f865..644d77881e4f 100644
--- a/regress/keytype.sh
+++ b/regress/keytype.sh
@@ -3,11 +3,6 @@
 
 tid="login with different key types"
 
-TIME=`which time 2>/dev/null`
-if test ! -x "$TIME"; then
-	TIME=""
-fi
-
 cp $OBJ/sshd_proxy $OBJ/sshd_proxy_bak
 cp $OBJ/ssh_proxy $OBJ/ssh_proxy_bak
 
@@ -27,7 +22,7 @@ for kt in $ktypes; do
 	bits=`echo ${kt} | awk -F- '{print $2}'`
 	type=`echo ${kt}  | awk -F- '{print $1}'`
 	printf "keygen $type, $bits bits:\t"
-	${TIME} ${SSHKEYGEN} -b $bits -q -N '' -t $type  -f $OBJ/key.$kt ||\
+	${SSHKEYGEN} -b $bits -q -N '' -t $type  -f $OBJ/key.$kt ||\
 		fail "ssh-keygen for type $type, $bits bits failed"
 done
 
@@ -64,7 +59,7 @@ for ut in $ktypes; do
 		cat $OBJ/key.$ut.pub > $OBJ/authorized_keys_$USER
 		for i in $tries; do
 			printf "userkey $ut, hostkey ${ht}:\t"
-			${TIME} ${SSH} -F $OBJ/ssh_proxy 999.999.999.999 true
+			${SSH} -F $OBJ/ssh_proxy 999.999.999.999 true
 			if [ $? -ne 0 ]; then
 				fail "ssh userkey $ut, hostkey $ht failed"
 			fi
-- 
2.12.0



More information about the openssh-unix-dev mailing list