Enable rootless integration tests

Signed-off-by: baude <bbaude@redhat.com>
This commit is contained in:
baude
2019-03-14 12:03:42 -05:00
committed by Giuseppe Scrivano
parent ac523cbe2b
commit c6b205be77
38 changed files with 119 additions and 20 deletions

View File

@ -3,6 +3,7 @@ package integration
import (
"encoding/json"
"fmt"
"github.com/containers/libpod/pkg/rootless"
"io/ioutil"
"os"
"os/exec"
@ -213,7 +214,11 @@ func PodmanTestCreateUtil(tempDir string, remote bool) *PodmanTestIntegration {
if os.Getenv("STORAGE_OPTIONS") != "" {
storageOptions = os.Getenv("STORAGE_OPTIONS")
}
cgroupManager := CGROUP_MANAGER
if rootless.IsRootless() {
cgroupManager = "cgroupfs"
}
if os.Getenv("CGROUP_MANAGER") != "" {
cgroupManager = os.Getenv("CGROUP_MANAGER")
}