]> www.infradead.org Git - users/jedix/linux-maple.git/commit
selftests: bonding: use slowwait instead of hard code sleep
authorHangbin Liu <liuhangbin@gmail.com>
Mon, 5 Feb 2024 13:00:48 +0000 (21:00 +0800)
committerJakub Kicinski <kuba@kernel.org>
Thu, 8 Feb 2024 02:26:20 +0000 (18:26 -0800)
commite1f0da9b90fbe0886f57f8cbe0b84ce82fc20e75
tree87171879eaa66abc4f4e3bac6fb22111e8ce317f
parent45bf79bc56c4158afb6f57cca67ac0ef0a7073ef
selftests: bonding: use slowwait instead of hard code sleep

Use slowwait instead of hard code sleep for bonding tests.

In function setup_prepare(), the client_create() will be called after
server_create(). So I think there is no need to sleep in server_create()
and remove it.

For lab_lib.sh, remove bonding module may affect other running bonding tests.
And some test env may buildin bond which can't be removed. The bonding
link should be removed by lag_reset_network() or netns delete.

Signed-off-by: Hangbin Liu <liuhangbin@gmail.com>
Link: https://lore.kernel.org/r/20240205130048.282087-5-liuhangbin@gmail.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
tools/testing/selftests/drivers/net/bonding/bond-lladdr-target.sh
tools/testing/selftests/drivers/net/bonding/bond_topo_2d1c.sh
tools/testing/selftests/drivers/net/bonding/lag_lib.sh