Skip to content

Commit 1f83b83

Browse files
Florian Westphalkuba-moo
authored andcommitted
fcnal-test: kill hanging ping/nettest binaries on cleanup
On my box I see a bunch of ping/nettest processes hanging around after fcntal-test.sh is done. Clean those up before netns deletion. Signed-off-by: Florian Westphal <[email protected]> Acked-by: David Ahern <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Jakub Kicinski <[email protected]>
1 parent 32f8807 commit 1f83b83

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

tools/testing/selftests/net/fcnal-test.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -445,10 +445,13 @@ cleanup()
445445
ip -netns ${NSA} link set dev ${NSA_DEV} down
446446
ip -netns ${NSA} link del dev ${NSA_DEV}
447447

448+
ip netns pids ${NSA} | xargs kill 2>/dev/null
448449
ip netns del ${NSA}
449450
fi
450451

452+
ip netns pids ${NSB} | xargs kill 2>/dev/null
451453
ip netns del ${NSB}
454+
ip netns pids ${NSC} | xargs kill 2>/dev/null
452455
ip netns del ${NSC} >/dev/null 2>&1
453456
}
454457

0 commit comments

Comments
 (0)