Skip to content

Commit e8497d6

Browse files
pmachatakuba-moo
authored andcommitted
selftests: forwarding: no_forwarding: Down ports on cleanup
This test neglects to put ports down on cleanup. Fix it. Fixes: 476a4f0 ("selftests: forwarding: add a no_forwarding.sh test") Signed-off-by: Petr Machata <petrm@nvidia.com> Reviewed-by: Simon Horman <horms@kernel.org> Link: https://patch.msgid.link/0baf91dc24b95ae0cadfdf5db05b74888e6a228a.1724430120.git.petrm@nvidia.com Signed-off-by: Jakub Kicinski <kuba@kernel.org>
1 parent bc21000 commit e8497d6

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -233,6 +233,9 @@ cleanup()
233233
{
234234
pre_cleanup
235235

236+
ip link set dev $swp2 down
237+
ip link set dev $swp1 down
238+
236239
h2_destroy
237240
h1_destroy
238241

0 commit comments

Comments
 (0)