Increase ConnectionAttempts from 4 to 10 as the tests occasionally time
authordtucker <dtucker@openbsd.org>
Fri, 7 May 2021 09:23:40 +0000 (09:23 +0000)
committerdtucker <dtucker@openbsd.org>
Fri, 7 May 2021 09:23:40 +0000 (09:23 +0000)
out on heavily loaded hosts.

regress/usr.bin/ssh/forward-control.sh
regress/usr.bin/ssh/forwarding.sh

index 3790d04..9d8286a 100644 (file)
@@ -1,4 +1,4 @@
-#      $OpenBSD: forward-control.sh,v 1.7 2018/06/07 14:29:43 djm Exp $
+#      $OpenBSD: forward-control.sh,v 1.8 2021/05/07 09:23:40 dtucker Exp $
 #      Placed in the Public Domain.
 
 tid="sshd control of local and remote forwarding"
@@ -46,7 +46,7 @@ check_lfwd() {
        wait_for_file_to_appear $READY || \
                fatal "check_lfwd ssh fail: $_message"
        ${SSH} -F $OBJ/ssh_config -p $LFWD_PORT \
-           -oConnectionAttempts=4 host true >/dev/null 2>&1
+           -oConnectionAttempts=10 host true >/dev/null 2>&1
        _result=$?
        kill $_sshpid `cat $READY` 2>/dev/null
        wait_for_process_to_exit $_sshpid
@@ -76,7 +76,7 @@ check_rfwd() {
        _result=$?
        if test $_result -eq 0 ; then
                ${SSH} -F $OBJ/ssh_config -p $RFWD_PORT \
-                   -oConnectionAttempts=4 host true >/dev/null 2>&1
+                   -oConnectionAttempts=10 host true >/dev/null 2>&1
                _result=$?
                kill $_sshpid `cat $READY` 2>/dev/null
                wait_for_process_to_exit $_sshpid
index 017274f..a03ba8a 100644 (file)
@@ -1,4 +1,4 @@
-#      $OpenBSD: forwarding.sh,v 1.23 2019/07/20 09:50:58 dtucker Exp $
+#      $OpenBSD: forwarding.sh,v 1.24 2021/05/07 09:23:40 dtucker Exp $
 #      Placed in the Public Domain.
 
 tid="local and remote forwarding"
@@ -26,7 +26,7 @@ rm -f $CTL
 ${SSH} -S $CTL -N -M -F $OBJ/ssh_config -f $fwd somehost
 
 trace "transfer over forwarded channels and check result"
-${SSH} -F $OBJ/ssh_config -p$last -o 'ConnectionAttempts=4' \
+${SSH} -F $OBJ/ssh_config -p$last -o 'ConnectionAttempts=10' \
        somehost cat ${DATA} > ${COPY}
 test -s ${COPY}                || fail "failed copy of ${DATA}"
 cmp ${DATA} ${COPY}    || fail "corrupted copy of ${DATA}"
@@ -107,7 +107,7 @@ rm -f $CTL
 ${SSH} -S $CTL -N -M -F $OBJ/ssh_config -f somehost
 
 trace "config file: transfer over forwarded channels and check result"
-${SSH} -F $OBJ/ssh_config -p${base}02 -o 'ConnectionAttempts=4' \
+${SSH} -F $OBJ/ssh_config -p${base}02 -o 'ConnectionAttempts=10' \
        somehost cat ${DATA} > ${COPY}
 test -s ${COPY}                || fail "failed copy of ${DATA}"
 cmp ${DATA} ${COPY}    || fail "corrupted copy of ${DATA}"
@@ -121,7 +121,7 @@ ${SSH} -S $CTL -N -M -f -F $OBJ/ssh_config -R${base}01:[$OBJ/unix-1.fwd] somehos
 ${SSH} -S $CTL.1 -N -M -f -F $OBJ/ssh_config -L[$OBJ/unix-1.fwd]:[$OBJ/unix-2.fwd] somehost
 ${SSH} -S $CTL.2 -N -M -f -F $OBJ/ssh_config -R[$OBJ/unix-2.fwd]:[$OBJ/unix-3.fwd] somehost
 ${SSH} -S $CTL.3 -N -M -f -F $OBJ/ssh_config -L[$OBJ/unix-3.fwd]:127.0.0.1:$PORT somehost
-${SSH} -F $OBJ/ssh_config -p${base}01 -o 'ConnectionAttempts=4' \
+${SSH} -F $OBJ/ssh_config -p${base}01 -o 'ConnectionAttempts=10' \
        somehost cat ${DATA} > ${COPY}
 test -s ${COPY}                        || fail "failed copy ${DATA}"
 cmp ${DATA} ${COPY}            || fail "corrupted copy of ${DATA}"