From 147c2e3ad1d6fbed29d4a25d5e46e6b9cd22b0e1 Mon Sep 17 00:00:00 2001 From: Simon Ruderich Date: Fri, 15 Nov 2024 07:55:18 +0100 Subject: [PATCH] ci: check if examples properly cleanup files in /etc/netns/ --- ci/examples | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ci/examples b/ci/examples index 2379bdf..5a7617e 100755 --- a/ci/examples +++ b/ci/examples @@ -32,6 +32,7 @@ ip netns exec r1 ping -c1 r2-loop ip netns exec r1 ping -c1 r3-loop ../../linux-network-namespace-labs down lab.conf test -z "$(ip netns)" +test "$(cd /etc/netns; find)" = "." # directory empty cd "$examples/bird-ospf" ../../linux-network-namespace-labs up lab.conf @@ -43,3 +44,4 @@ ip netns exec r1 ping -c1 r2-loop ip netns exec r1 ping -c1 r3-loop ../../linux-network-namespace-labs down lab.conf test -z "$(ip netns)" +test "$(cd /etc/netns; find)" = "." # directory empty -- 2.45.2