Skip network test with kindnet if container runtime is not docker

pull/11412/head
Ilya Zuyev 2021-05-14 10:46:01 -07:00
parent 46f17ea0fe
commit 14a94d214f
1 changed files with 4 additions and 0 deletions

View File

@ -69,6 +69,10 @@ func TestNetworkPlugins(t *testing.T) {
t.Skipf("flannel is not yet compatible with Docker driver: iptables v1.8.3 (legacy): Couldn't load target `CNI-x': No such file or directory")
}
if !DockerDriver() && tc.name == "kindnet" {
t.Skipf("Skipping the test as %s container runtimes requires CNI", ContainerRuntime())
}
start := time.Now()
MaybeParallel(t)
profile := UniqueProfileName(tc.name)