Skip to content

Commit

Permalink
fcnal-test: kill hanging ping/nettest binaries on cleanup
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
Florian Westphal authored and kuba-moo committed Oct 22, 2021
1 parent 32f8807 commit 1f83b83
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tools/testing/selftests/net/fcnal-test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -445,10 +445,13 @@ cleanup()
ip -netns ${NSA} link set dev ${NSA_DEV} down
ip -netns ${NSA} link del dev ${NSA_DEV}

ip netns pids ${NSA} | xargs kill 2>/dev/null
ip netns del ${NSA}
fi

ip netns pids ${NSB} | xargs kill 2>/dev/null
ip netns del ${NSB}
ip netns pids ${NSC} | xargs kill 2>/dev/null
ip netns del ${NSC} >/dev/null 2>&1
}

Expand Down

0 comments on commit 1f83b83

Please sign in to comment.