mirror of https://github.com/containers/podman.git
Don't use all of tempdir as podman's --tmpdir
... because (podman system reset) will delete all of it, interfering with the test storing other data in the directory. Signed-off-by: Miloslav Trmač <mitr@redhat.com>
This commit is contained in:
parent
2d42b13d55
commit
27ccfef3a1
|
@ -114,7 +114,10 @@ var (
|
||||||
_ = BeforeEach(func() {
|
_ = BeforeEach(func() {
|
||||||
tempdir, err = os.MkdirTemp(GlobalTmpDir, "subtest-")
|
tempdir, err = os.MkdirTemp(GlobalTmpDir, "subtest-")
|
||||||
Expect(err).ToNot(HaveOccurred())
|
Expect(err).ToNot(HaveOccurred())
|
||||||
podmanTest = PodmanTestCreate(tempdir)
|
podmanTempDir := filepath.Join(tempdir, "p")
|
||||||
|
err = os.Mkdir(podmanTempDir, 0o700)
|
||||||
|
Expect(err).ToNot(HaveOccurred())
|
||||||
|
podmanTest = PodmanTestCreate(podmanTempDir)
|
||||||
podmanTest.Setup()
|
podmanTest.Setup()
|
||||||
// see GetSafeIPAddress() below
|
// see GetSafeIPAddress() below
|
||||||
safeIPOctets[0] = uint8(GinkgoT().ParallelProcess()) + 128
|
safeIPOctets[0] = uint8(GinkgoT().ParallelProcess()) + 128
|
||||||
|
|
|
@ -22,7 +22,7 @@ var _ = Describe("Podman run with volumes", func() {
|
||||||
containerStorageDir = filepath.Join(podmanTest.Root, podmanTest.ImageCacheFS+"-containers")
|
containerStorageDir = filepath.Join(podmanTest.Root, podmanTest.ImageCacheFS+"-containers")
|
||||||
dbDir = filepath.Join(podmanTest.Root, "libpod")
|
dbDir = filepath.Join(podmanTest.Root, "libpod")
|
||||||
runContainerStorageDir = filepath.Join(podmanTest.RunRoot, podmanTest.ImageCacheFS+"-containers")
|
runContainerStorageDir = filepath.Join(podmanTest.RunRoot, podmanTest.ImageCacheFS+"-containers")
|
||||||
runDBDir = tempdir
|
runDBDir = podmanTest.TempDir
|
||||||
})
|
})
|
||||||
|
|
||||||
It("podman run with no transient-store", func() {
|
It("podman run with no transient-store", func() {
|
||||||
|
|
Loading…
Reference in New Issue