Lines Matching full:expected
57 local expected=$2
65 if [ "$nr" != "$expected" ]; then
70 echo "[ fail ] expected $expected found $nr"
96 local expected=$1
99 __chk_nr "ss -nlHMON $ns | wc -l" "$expected" "$msg - mptcp" 0
100 __chk_nr "ss -nlHtON $ns | wc -l" "$expected" "$msg - subflows"
106 local expected=$1
117 [ $nr == $expected ] && break;
125 echo "[ fail ] timeout while expecting $expected max $max last $nr"
128 elif [ $nr != $expected ]; then
129 echo "[ fail ] expected $expected found $nr"
152 local expected=$2
155 __chk_nr "ss -N $ns -Ml '$filter' | grep -c LISTEN" "$expected" "$msg" 0
177 local expected=$1
178 local msg="....chk ${2:-${expected}} msk in use"
181 if [ "${expected}" -eq 0 ]; then
186 expected=$((expected + listen_nr))
189 if [ $(get_msk_inuse) -eq $expected ];then
195 __chk_nr get_msk_inuse $expected "${msg}" 0
201 local expected=$1
202 local msg="....chk ${2:-${expected}} cestab"
204 if [ "${expected}" -eq 0 ]; then
209 "${expected}" "${msg}" ""