mirror of
https://github.com/containers/podman.git
synced 2025-12-19 07:09:39 +08:00
Add a system test to verify --runtime is preserved
Signed-off-by: Matthew Heon <matthew.heon@pm.me>
This commit is contained in:
committed by
Matthew Heon
parent
3858fc1d01
commit
1b4933376f
@@ -235,14 +235,7 @@ func PodmanTestCreateUtil(tempDir string, remote bool) *PodmanTestIntegration {
|
||||
|
||||
ociRuntime := os.Getenv("OCI_RUNTIME")
|
||||
if ociRuntime == "" {
|
||||
var err error
|
||||
ociRuntime, err = exec.LookPath("crun")
|
||||
// If we cannot find the crun binary, setting to something static as we have no way
|
||||
// to return an error. The tests will fail and point out that the runc binary could
|
||||
// not be found nicely.
|
||||
if err != nil {
|
||||
ociRuntime = "/usr/bin/runc"
|
||||
}
|
||||
ociRuntime = "crun"
|
||||
}
|
||||
os.Setenv("DISABLE_HC_SYSTEMD", "true")
|
||||
CNIConfigDir := "/etc/cni/net.d"
|
||||
|
||||
Reference in New Issue
Block a user