mirror of
https://github.com/containers/podman.git
synced 2025-10-26 10:45:26 +08:00
Modify E2E tests to use alternate Conmon path if present
Signed-off-by: Matthew Heon <mheon@redhat.com> Closes: #474 Approved by: rhatdan
This commit is contained in:
@ -117,6 +117,10 @@ func PodmanCreate(tempDir string) PodmanTest {
|
|||||||
podmanBinary = os.Getenv("PODMAN_BINARY")
|
podmanBinary = os.Getenv("PODMAN_BINARY")
|
||||||
}
|
}
|
||||||
conmonBinary := filepath.Join("/usr/libexec/crio/conmon")
|
conmonBinary := filepath.Join("/usr/libexec/crio/conmon")
|
||||||
|
altConmonBinary := "/usr/libexec/podman/conmon"
|
||||||
|
if _, err := os.Stat(altConmonBinary); err == nil {
|
||||||
|
conmonBinary = altConmonBinary
|
||||||
|
}
|
||||||
if os.Getenv("CONMON_BINARY") != "" {
|
if os.Getenv("CONMON_BINARY") != "" {
|
||||||
conmonBinary = os.Getenv("CONMON_BINARY")
|
conmonBinary = os.Getenv("CONMON_BINARY")
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user