summaryrefslogtreecommitdiff
path: root/regress/usr.bin/ssh/yes-head.sh
diff options
context:
space:
mode:
Diffstat (limited to 'regress/usr.bin/ssh/yes-head.sh')
-rw-r--r--regress/usr.bin/ssh/yes-head.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/regress/usr.bin/ssh/yes-head.sh b/regress/usr.bin/ssh/yes-head.sh
index f213f6863ca..527e6fd3020 100644
--- a/regress/usr.bin/ssh/yes-head.sh
+++ b/regress/usr.bin/ssh/yes-head.sh
@@ -1,9 +1,9 @@
-# $OpenBSD: yes-head.sh,v 1.4 2002/03/15 13:08:56 markus Exp $
+# $OpenBSD: yes-head.sh,v 1.5 2015/03/03 22:35:19 markus Exp $
# Placed in the Public Domain.
tid="yes pipe head"
-for p in 1 2; do
+for p in ${SSH_PROTOCOLS}; do
lines=`${SSH} -$p -F $OBJ/ssh_proxy thishost 'yes | head -2000' | (sleep 3 ; wc -l)`
if [ $? -ne 0 ]; then
fail "yes|head test failed"