mirror of
https://github.com/containers/podman.git
synced 2025-06-26 12:56:45 +08:00
Only use cgroupfs for containerized tests
Signed-off-by: Matthew Heon <matthew.heon@gmail.com>
This commit is contained in:
@ -29,7 +29,7 @@ var (
|
||||
CNI_CONFIG_DIR string
|
||||
RUNC_BINARY string
|
||||
INTEGRATION_ROOT string
|
||||
CGROUP_MANAGER = "cgroupfs"
|
||||
CGROUP_MANAGER = "systemd"
|
||||
STORAGE_OPTIONS = "--storage-driver vfs"
|
||||
ARTIFACT_DIR = "/tmp/.artifacts"
|
||||
CACHE_IMAGES = []string{ALPINE, BB, fedoraMinimal, nginx, redis, registry}
|
||||
@ -143,6 +143,10 @@ func PodmanCreate(tempDir string) PodmanTest {
|
||||
if os.Getenv("STORAGE_OPTIONS") != "" {
|
||||
storageOptions = os.Getenv("STORAGE_OPTIONS")
|
||||
}
|
||||
cgroupManager := CGROUP_MANAGER
|
||||
if os.Getenv("CGROUP_MANAGER") != "" {
|
||||
storageOptions = os.Getenv("CGROUP_MANAGER")
|
||||
}
|
||||
|
||||
runCBinary := "/usr/bin/runc"
|
||||
CNIConfigDir := "/etc/cni/net.d"
|
||||
|
Reference in New Issue
Block a user