From 55508c11856c612186d685a4e217c462f3ca2416 Mon Sep 17 00:00:00 2001 From: Giuseppe Scrivano Date: Tue, 27 Nov 2018 14:32:46 +0100 Subject: test: cleanup CNI network used by the tests issue introduced with: https://github.com/containers/libpod/pull/1871 Signed-off-by: Giuseppe Scrivano --- test/e2e/create_staticip_test.go | 2 ++ test/e2e/run_staticip_test.go | 2 ++ 2 files changed, 4 insertions(+) diff --git a/test/e2e/create_staticip_test.go b/test/e2e/create_staticip_test.go index ed6498b43..17ac5cb40 100644 --- a/test/e2e/create_staticip_test.go +++ b/test/e2e/create_staticip_test.go @@ -23,6 +23,8 @@ var _ = Describe("Podman create with --ip flag", func() { } podmanTest = PodmanTestCreate(tempdir) podmanTest.RestoreAllArtifacts() + // Cleanup the CNI networks used by the tests + os.RemoveAll("/var/lib/cni/networks/podman") }) AfterEach(func() { diff --git a/test/e2e/run_staticip_test.go b/test/e2e/run_staticip_test.go index ede7dd3de..749835b47 100644 --- a/test/e2e/run_staticip_test.go +++ b/test/e2e/run_staticip_test.go @@ -23,6 +23,8 @@ var _ = Describe("Podman run with --ip flag", func() { } podmanTest = PodmanTestCreate(tempdir) podmanTest.RestoreAllArtifacts() + // Cleanup the CNI networks used by the tests + os.RemoveAll("/var/lib/cni/networks/podman") }) AfterEach(func() { -- cgit v1.2.3-54-g00ecf