diff options
author | Giuseppe Scrivano <gscrivan@redhat.com> | 2018-11-27 14:32:46 +0100 |
---|---|---|
committer | Giuseppe Scrivano <gscrivan@redhat.com> | 2018-11-27 16:55:28 +0100 |
commit | 55508c11856c612186d685a4e217c462f3ca2416 (patch) | |
tree | 050a529d09f144a1d77d7fd4d3a7263738bdc5d7 | |
parent | 3f0c0cf80f5cbb3d3049c690c697a7d46ecc9d3a (diff) | |
download | podman-55508c11856c612186d685a4e217c462f3ca2416.tar.gz podman-55508c11856c612186d685a4e217c462f3ca2416.tar.bz2 podman-55508c11856c612186d685a4e217c462f3ca2416.zip |
test: cleanup CNI network used by the tests
issue introduced with:
https://github.com/containers/libpod/pull/1871
Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
-rw-r--r-- | test/e2e/create_staticip_test.go | 2 | ||||
-rw-r--r-- | test/e2e/run_staticip_test.go | 2 |
2 files changed, 4 insertions, 0 deletions
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() { |