mirror of
https://github.com/containers/podman.git
synced 2025-06-24 19:42:56 +08:00
test/e2e: unset CONTAINERS_CONF before Cleanup()
If we do not unset CONTAINERS_CONF before tests that create a invlid config will cause the Cleanup to fail. Signed-off-by: Paul Holzinger <pholzing@redhat.com>
This commit is contained in:
@ -37,11 +37,11 @@ var _ = Describe("Verify podman containers.conf usage", func() {
|
|||||||
})
|
})
|
||||||
|
|
||||||
AfterEach(func() {
|
AfterEach(func() {
|
||||||
|
os.Unsetenv("CONTAINERS_CONF")
|
||||||
|
os.Unsetenv("CONTAINERS_CONF_OVERRIDE")
|
||||||
podmanTest.Cleanup()
|
podmanTest.Cleanup()
|
||||||
f := CurrentSpecReport()
|
f := CurrentSpecReport()
|
||||||
processTestResult(f)
|
processTestResult(f)
|
||||||
os.Unsetenv("CONTAINERS_CONF")
|
|
||||||
os.Unsetenv("CONTAINERS_CONF_OVERRIDE")
|
|
||||||
})
|
})
|
||||||
|
|
||||||
It("limits test", func() {
|
It("limits test", func() {
|
||||||
|
Reference in New Issue
Block a user