diff options
Diffstat (limited to 'regress')
-rw-r--r-- | regress/reconfigure.sh | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/regress/reconfigure.sh b/regress/reconfigure.sh index 9fd289531..ba6648bf4 100644 --- a/regress/reconfigure.sh +++ b/regress/reconfigure.sh | |||
@@ -1,4 +1,4 @@ | |||
1 | # $OpenBSD: reconfigure.sh,v 1.2 2003/06/21 09:14:05 markus Exp $ | 1 | # $OpenBSD: reconfigure.sh,v 1.3 2015/01/14 09:54:38 markus Exp $ |
2 | # Placed in the Public Domain. | 2 | # Placed in the Public Domain. |
3 | 3 | ||
4 | tid="simple connect after reconfigure" | 4 | tid="simple connect after reconfigure" |
@@ -15,6 +15,14 @@ esac | |||
15 | 15 | ||
16 | start_sshd | 16 | start_sshd |
17 | 17 | ||
18 | trace "connect before restart" | ||
19 | for p in 1 2; do | ||
20 | ${SSH} -o "Protocol=$p" -F $OBJ/ssh_config somehost true | ||
21 | if [ $? -ne 0 ]; then | ||
22 | fail "ssh connect with protocol $p failed before reconfigure" | ||
23 | fi | ||
24 | done | ||
25 | |||
18 | PID=`$SUDO cat $PIDFILE` | 26 | PID=`$SUDO cat $PIDFILE` |
19 | rm -f $PIDFILE | 27 | rm -f $PIDFILE |
20 | $SUDO kill -HUP $PID | 28 | $SUDO kill -HUP $PID |
@@ -28,6 +36,7 @@ done | |||
28 | 36 | ||
29 | test -f $PIDFILE || fatal "sshd did not restart" | 37 | test -f $PIDFILE || fatal "sshd did not restart" |
30 | 38 | ||
39 | trace "connect after restart" | ||
31 | for p in 1 2; do | 40 | for p in 1 2; do |
32 | ${SSH} -o "Protocol=$p" -F $OBJ/ssh_config somehost true | 41 | ${SSH} -o "Protocol=$p" -F $OBJ/ssh_config somehost true |
33 | if [ $? -ne 0 ]; then | 42 | if [ $? -ne 0 ]; then |