diff --git a/podman/tests/integration/base.py b/podman/tests/integration/base.py index a733694c..5df0f901 100644 --- a/podman/tests/integration/base.py +++ b/podman/tests/integration/base.py @@ -59,8 +59,12 @@ def setUp(self): self.test_dir = self.useFixture(fixtures.TempDir()).path self.socket_file = os.path.join(self.test_dir, uuid.uuid4().hex) self.socket_uri = f'unix://{self.socket_file}' + self.storage_path = os.path.join(self.test_dir, "storage") self.service_launcher = utils.PodmanLauncher( - self.socket_uri, podman_path=IntegrationTest.podman, log_level=self.log_level + self.socket_uri, + podman_path=IntegrationTest.podman, + log_level=self.log_level, + storage_path=self.storage_path, ) self.service_launcher.start() self.addCleanup(self.service_launcher.stop) diff --git a/podman/tests/integration/utils.py b/podman/tests/integration/utils.py index 8ead4fe5..6cadbcaf 100644 --- a/podman/tests/integration/utils.py +++ b/podman/tests/integration/utils.py @@ -39,6 +39,7 @@ def __init__( timeout: int = 0, privileged: bool = False, log_level: str = "WARNING", + storage_path: Optional[str] = None, ) -> None: """create a launcher and build podman command""" podman_exe: Optional[str] = podman_path @@ -67,6 +68,9 @@ def __init__( if os.environ.get("container") == "oci": self.cmd.append("--storage-driver=vfs") + if storage_path: + self.cmd.extend(["--root", storage_path]) + self.cmd.extend( [ "system",