summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormarkus <markus@openbsd.org>2015-01-14 09:54:38 +0000
committermarkus <markus@openbsd.org>2015-01-14 09:54:38 +0000
commit86e674448a46d406d8bd9f86be15cbe46a3df00b (patch)
tree6173d70aef44e82b20a1f3504cee34f7593b5b03
parentrecipient and sender lists now support the user+TAG notation, allowing (diff)
downloadwireguard-openbsd-86e674448a46d406d8bd9f86be15cbe46a3df00b.tar.xz
wireguard-openbsd-86e674448a46d406d8bd9f86be15cbe46a3df00b.zip
don't reset to the installed sshd; connect before reconfigure, too
-rw-r--r--regress/usr.bin/ssh/reconfigure.sh14
1 files changed, 10 insertions, 4 deletions
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