Merge pull request #27461 from euank/e2e-rkt-runtime

Automatic merge from submit-queue

e2e: Allow skipping tests for specific runtimes, skip a few tests under rkt

The main benefit of this is that it gives a developer more useful output (more signal to noise) for things that are known broken on that runtime.

cc @kubernetes/rktnetes-maintainers , @ixdy 

I'll run this PR through our jenkins and make sure things look happy and compare to the e2e results for this PR.
This commit is contained in:
k8s-merge-robot
2016-06-26 18:47:42 -07:00
committed by GitHub
5 changed files with 18 additions and 0 deletions

View File

@@ -367,6 +367,14 @@ func SkipUnlessProviderIs(supportedProviders ...string) {
}
}
func SkipIfContainerRuntimeIs(runtimes ...string) {
for _, runtime := range runtimes {
if runtime == TestContext.ContainerRuntime {
Skipf("Not supported under container runtime %s", runtime)
}
}
}
func ProviderIs(providers ...string) bool {
for _, provider := range providers {
if strings.ToLower(provider) == strings.ToLower(TestContext.Provider) {