fix function

pull/10196/head
Priya Wadhwa 2021-01-22 14:29:41 -08:00
parent ebf76d5839
commit df93c7ca2b
1 changed files with 1 additions and 4 deletions

View File

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