diff options
author | Markus Friedl <markus@cvs.openbsd.org> | 2002-02-15 14:41:39 +0000 |
---|---|---|
committer | Markus Friedl <markus@cvs.openbsd.org> | 2002-02-15 14:41:39 +0000 |
commit | ed23703db0799a89bc3ab93e5dafc07b58147ced (patch) | |
tree | 12d528e130ce9840a0feac364b874d6657767d0d /regress/usr.bin/ssh/broken-pipe.sh | |
parent | 1b469fee148ffc20c8465b58ea3865fb303f26d3 (diff) |
we don't need a listening sshd for most of our tests, just
connect client and server w/o TCP:
ssh -o 'proxycommand sshd -i -f $OBJ/sshd_proxy'
Diffstat (limited to 'regress/usr.bin/ssh/broken-pipe.sh')
-rw-r--r-- | regress/usr.bin/ssh/broken-pipe.sh | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/regress/usr.bin/ssh/broken-pipe.sh b/regress/usr.bin/ssh/broken-pipe.sh index ccbfee259a4..89ea8a91497 100644 --- a/regress/usr.bin/ssh/broken-pipe.sh +++ b/regress/usr.bin/ssh/broken-pipe.sh @@ -1,9 +1,12 @@ tid="broken pipe test" -for i in 1 2 3 4; do - ssh -2 -F $OBJ/ssh_config nexthost echo $i | true - r=$? - if [ $r -ne 0 ]; then - fail "broken pipe returns $r" - fi +for p in 1 2; do + trace "protocol $p" + for i in 1 2 3 4; do + ssh -$p -F $OBJ/ssh_config_config nexthost echo $i 2> /dev/null | true + r=$? + if [ $r -ne 0 ]; then + fail "broken pipe returns $r for protocol $p" + fi + done done |