From: markus Date: Wed, 14 Jan 2015 09:54:38 +0000 (+0000) Subject: don't reset to the installed sshd; connect before reconfigure, too X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=86e674448a46d406d8bd9f86be15cbe46a3df00b;p=openbsd don't reset to the installed sshd; connect before reconfigure, too --- diff --git a/regress/usr.bin/ssh/reconfigure.sh b/regress/usr.bin/ssh/reconfigure.sh index 4315f0a40eb..89e7a0a206a 100644 --- a/regress/usr.bin/ssh/reconfigure.sh +++ b/regress/usr.bin/ssh/reconfigure.sh @@ -1,13 +1,18 @@ -# $OpenBSD: reconfigure.sh,v 1.2 2003/06/21 09:14:05 markus Exp $ +# $OpenBSD: reconfigure.sh,v 1.3 2015/01/14 09:54:38 markus Exp $ # Placed in the Public Domain. tid="simple connect after reconfigure" -# we need the full path to sshd for -HUP -SSHD=/usr/sbin/sshd - start_sshd +trace "connect before restart" +for p in 1 2; do + ${SSH} -o "Protocol=$p" -F $OBJ/ssh_config somehost true + if [ $? -ne 0 ]; then + fail "ssh connect with protocol $p failed before reconfigure" + fi +done + $SUDO kill -HUP `cat $PIDFILE` sleep 1 @@ -20,6 +25,7 @@ done test -f $PIDFILE || fatal "sshd did not restart" +trace "connect after restart" for p in 1 2; do ${SSH} -o "Protocol=$p" -F $OBJ/ssh_config somehost true if [ $? -ne 0 ]; then