Lines Matching refs:expected
57 local expected=$2
65 if [ "$nr" != "$expected" ]; then
70 echo "[ fail ] expected $expected found $nr"
97 local expected=$1
108 [ $nr == $expected ] && break;
116 echo "[ fail ] timeout while expecting $expected max $max last $nr"
119 elif [ $nr != $expected ]; then
120 echo "[ fail ] expected $expected found $nr"
143 local expected=$2
146 __chk_nr "ss -N $ns -Ml '$filter' | grep -c LISTEN" "$expected" "$msg" 0
168 local expected=$1
169 local msg="....chk ${2:-${expected}} msk in use"
172 if [ "${expected}" -eq 0 ]; then
177 expected=$((expected + listen_nr))
180 if [ $(get_msk_inuse) -eq $expected ];then
186 __chk_nr get_msk_inuse $expected "${msg}" 0
209 local expected=$1
210 local msg="....chk ${2:-${expected}} cestab"
212 if [ "${expected}" -eq 0 ]; then
217 "${expected}" "${msg}" ""