summaryrefslogtreecommitdiff
path: root/test/e2e/run_staticip_test.go
diff options
context:
space:
mode:
authorGiuseppe Scrivano <gscrivan@redhat.com>2018-11-27 14:32:46 +0100
committerGiuseppe Scrivano <gscrivan@redhat.com>2018-11-27 16:55:28 +0100
commit55508c11856c612186d685a4e217c462f3ca2416 (patch)
tree050a529d09f144a1d77d7fd4d3a7263738bdc5d7 /test/e2e/run_staticip_test.go
parent3f0c0cf80f5cbb3d3049c690c697a7d46ecc9d3a (diff)
downloadpodman-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>
Diffstat (limited to 'test/e2e/run_staticip_test.go')
-rw-r--r--test/e2e/run_staticip_test.go2
1 files changed, 2 insertions, 0 deletions
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() {