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:
Paul Holzinger
2023-04-13 11:58:59 +02:00
parent 8cc7a36183
commit cc19091e91

View File

@ -37,11 +37,11 @@ var _ = Describe("Verify podman containers.conf usage", func() {
})
AfterEach(func() {
os.Unsetenv("CONTAINERS_CONF")
os.Unsetenv("CONTAINERS_CONF_OVERRIDE")
podmanTest.Cleanup()
f := CurrentSpecReport()
processTestResult(f)
os.Unsetenv("CONTAINERS_CONF")
os.Unsetenv("CONTAINERS_CONF_OVERRIDE")
})
It("limits test", func() {