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
12511251 tc -j -s filter show dev $host1_if ingress \
12521252 | jq -e ".[] | select(.options.handle == 101) \
12531253 | 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"
12551255
12561256 $MZ $host1_if -c 1 -p 64 -a $mac -t ip -q
12571257 sleep 1