History

selftests: forwarding: fix error message in learning_test

When packets are not received, they aren't received on $host1_if, so the message talking about the second host not receiving them is incorrect. Fix it.

Vladimir Oltean committed 4 years ago

Commit 83844aa1 parent 1a635d31 file · +1 −1Browse files

Unified · Split

tools/testing/selftests/net/forwarding/lib.sh+1−1
@@ -1251,7 +1251,7 @@ learning_test() · 1250 unmodified lines
1251 tc -j -s filter show dev $host1_if ingress \1251 tc -j -s filter show dev $host1_if ingress \
1252 | jq -e ".[] | select(.options.handle == 101) \1252 | jq -e ".[] | select(.options.handle == 101) \
1253 | select(.options.actions[0].stats.packets == 1)" &> /dev/null1253 | select(.options.actions[0].stats.packets == 1)" &> /dev/null
1254 check_fail $? "Packet reached second host when should not"1254 check_fail $? "Packet reached first host when should not"
1255 1255
1256 $MZ $host1_if -c 1 -p 64 -a $mac -t ip -q1256 $MZ $host1_if -c 1 -p 64 -a $mac -t ip -q
1257 sleep 11257 sleep 1