]> git.ipfire.org Git - thirdparty/openssh-portable.git/commitdiff
upstream: more detail for failing tests
authordjm@openbsd.org <djm@openbsd.org>
Tue, 22 Dec 2020 06:47:24 +0000 (06:47 +0000)
committerDamien Miller <djm@mindrot.org>
Tue, 22 Dec 2020 06:48:31 +0000 (17:48 +1100)
OpenBSD-Regress-ID: c68c0e5a521cad7e7f68e54c54ebf86d6c10ee1d

regress/knownhosts-command.sh

index 6881d6079cfcb7edabecc53c0f6f491710697dc0..f15df670b0c8863b1b6db179d6053705dabb9747 100644 (file)
@@ -1,4 +1,4 @@
-#      $OpenBSD: knownhosts-command.sh,v 1.1 2020/12/22 06:03:36 djm Exp $
+#      $OpenBSD: knownhosts-command.sh,v 1.2 2020/12/22 06:47:24 djm Exp $
 #      Placed in the Public Domain.
 
 tid="known hosts command "
@@ -44,8 +44,8 @@ for keytype in ${SSH_HOSTKEY_TYPES} ; do
        cat > $OBJ/knownhosts_command << _EOF
 #!/bin/sh
 die() { echo "\$@" 1>&2 ; exit 1; }
-test "x\$1" = "x$keytype" || die "wrong keytype \$1"
-test "x\$3" = "x$LOGNAME" || die "wrong username \$3"
+test "x\$1" = "x$keytype" || die "wrong keytype \$1 (expected $keytype)"
+test "x\$3" = "x$LOGNAME" || die "wrong username \$3 (expected $LOGNAME)"
 grep -- "\$1.*\$2" $OBJ/known_hosts
 _EOF
        ${SSH} -F $OBJ/ssh_proxy -oHostKeyAlgorithms=$keytype x true ||