fix function
parent
ebf76d5839
commit
df93c7ca2b
|
@ -127,15 +127,12 @@ func PodmanDriver() bool {
|
||||||
// ContainerRuntime returns the name of a specific container runtime if it was specified
|
// ContainerRuntime returns the name of a specific container runtime if it was specified
|
||||||
func ContainerRuntime() string {
|
func ContainerRuntime() string {
|
||||||
flag := "--container-runtime="
|
flag := "--container-runtime="
|
||||||
if !strings.Contains(*startArgs, flag) {
|
|
||||||
return ""
|
|
||||||
}
|
|
||||||
for _, s := range StartArgs() {
|
for _, s := range StartArgs() {
|
||||||
if strings.HasPrefix(s, flag) {
|
if strings.HasPrefix(s, flag) {
|
||||||
return strings.TrimPrefix(s, flag)
|
return strings.TrimPrefix(s, flag)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return ""
|
return "docker"
|
||||||
}
|
}
|
||||||
|
|
||||||
// KicDriver returns whether or not this test is using the docker or podman driver
|
// KicDriver returns whether or not this test is using the docker or podman driver
|
||||||
|
|
Loading…
Reference in New Issue