diff options
author | djm@openbsd.org <djm@openbsd.org> | 2017-04-30 23:34:55 +0000 |
---|---|---|
committer | Damien Miller <djm@mindrot.org> | 2017-05-01 11:59:42 +1000 |
commit | dd369320d2435b630a5974ab270d686dcd92d024 (patch) | |
tree | 97ae4bb34d835fbafad12180862195a9e9192d28 /regress/connect.sh | |
parent | 557f921aad004be15805e09fd9572969eb3d9321 (diff) |
upstream commit
eliminate explicit specification of protocol in tests and
loops over protocol. We only support SSHv2 now.
Upstream-Regress-ID: 0082838a9b8a382b7ee9cbf0c1b9db727784fadd
Diffstat (limited to 'regress/connect.sh')
-rw-r--r-- | regress/connect.sh | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/regress/connect.sh b/regress/connect.sh index f0d55d343..1b344b603 100644 --- a/regress/connect.sh +++ b/regress/connect.sh | |||
@@ -1,13 +1,11 @@ | |||
1 | # $OpenBSD: connect.sh,v 1.5 2015/03/03 22:35:19 markus Exp $ | 1 | # $OpenBSD: connect.sh,v 1.6 2017/04/30 23:34:55 djm Exp $ |
2 | # Placed in the Public Domain. | 2 | # Placed in the Public Domain. |
3 | 3 | ||
4 | tid="simple connect" | 4 | tid="simple connect" |
5 | 5 | ||
6 | start_sshd | 6 | start_sshd |
7 | 7 | ||
8 | for p in ${SSH_PROTOCOLS}; do | 8 | ${SSH} -F $OBJ/ssh_config somehost true |
9 | ${SSH} -o "Protocol=$p" -F $OBJ/ssh_config somehost true | 9 | if [ $? -ne 0 ]; then |
10 | if [ $? -ne 0 ]; then | 10 | fail "ssh connect with failed" |
11 | fail "ssh connect with protocol $p failed" | 11 | fi |
12 | fi | ||
13 | done | ||