Skip to content

Commit 83844aa

Browse files
vladimirolteanPaolo Abeni
authored andcommitted
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. Fixes: d4deb01 ("selftests: forwarding: Add a test for FDB learning") Signed-off-by: Vladimir Oltean <[email protected]> Reviewed-by: Ido Schimmel <[email protected]> Signed-off-by: Paolo Abeni <[email protected]>
1 parent 1a635d3 commit 83844aa

File tree

1 file changed

+1
-1
lines changed
  • tools/testing/selftests/net/forwarding

1 file changed

+1
-1
lines changed

tools/testing/selftests/net/forwarding/lib.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1251,7 +1251,7 @@ learning_test()
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

0 commit comments

Comments
 (0)