mirror of
https://github.com/containers/podman.git
synced 2025-10-19 20:23:08 +08:00
e2e: Remove some directories at SynchronizedAfterSuite
"tempdir" in SynchronizedAftersuite and "LockTmpDir" can be removed. Signed-off-by: Toshiki Sonoda <sonoda.toshiki@fujitsu.com>
This commit is contained in:
@ -180,6 +180,7 @@ var _ = SynchronizedAfterSuite(func() {},
|
|||||||
os.Exit(1)
|
os.Exit(1)
|
||||||
}
|
}
|
||||||
podmanTest := PodmanTestCreate(tempdir)
|
podmanTest := PodmanTestCreate(tempdir)
|
||||||
|
defer os.RemoveAll(tempdir)
|
||||||
|
|
||||||
if err := os.RemoveAll(podmanTest.Root); err != nil {
|
if err := os.RemoveAll(podmanTest.Root); err != nil {
|
||||||
fmt.Printf("%q\n", err)
|
fmt.Printf("%q\n", err)
|
||||||
@ -192,6 +193,9 @@ var _ = SynchronizedAfterSuite(func() {},
|
|||||||
// for localized tests, this removes the image cache dir and for remote tests
|
// for localized tests, this removes the image cache dir and for remote tests
|
||||||
// this is a no-op
|
// this is a no-op
|
||||||
removeCache()
|
removeCache()
|
||||||
|
|
||||||
|
// LockTmpDir can already be removed
|
||||||
|
os.RemoveAll(LockTmpDir)
|
||||||
})
|
})
|
||||||
|
|
||||||
// PodmanTestCreate creates a PodmanTestIntegration instance for the tests
|
// PodmanTestCreate creates a PodmanTestIntegration instance for the tests
|
||||||
|
Reference in New Issue
Block a user