From 2f4b66967d319bf6d524e6a8161ad72c4812d12b Mon Sep 17 00:00:00 2001 From: Jukka Rissanen Date: Tue, 3 Nov 2020 15:16:14 +0200 Subject: [PATCH] net: scripts: Close zephyr network interface when test closes The zeth interface was left hanging around when the test finished but we can remove it here as it is not needed. Signed-off-by: Jukka Rissanen --- scripts/net/run-sample-tests.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/scripts/net/run-sample-tests.sh b/scripts/net/run-sample-tests.sh index 02e59046786..1809689700e 100755 --- a/scripts/net/run-sample-tests.sh +++ b/scripts/net/run-sample-tests.sh @@ -130,6 +130,10 @@ stop_configuration () echo "Could not stop Docker network '$network'" >&2 fi fi + + # No need to keep the zephyr eth interface around + "$NET_TOOLS_BASE/net-setup.sh" --config "$NET_TOOLS_BASE/docker.conf" \ + stop > /dev/null 2>&1 } start_zephyr ()