test/e2e/windows/:Use e2eskipper package

This commit is contained in:
tanjunchen
2020-01-11 15:27:54 +08:00
parent ace98e1382
commit f3b9a6e12f
8 changed files with 15 additions and 8 deletions

View File

@@ -17,7 +17,7 @@ limitations under the License.
package windows
import (
"k8s.io/kubernetes/test/e2e/framework"
e2eskipper "k8s.io/kubernetes/test/e2e/framework/skipper"
"github.com/onsi/ginkgo"
)
@@ -27,7 +27,7 @@ func SIGDescribe(text string, body func()) bool {
return ginkgo.Describe("[sig-windows] "+text, func() {
ginkgo.BeforeEach(func() {
// all tests in this package are Windows specific
framework.SkipUnlessNodeOSDistroIs("windows")
e2eskipper.SkipUnlessNodeOSDistroIs("windows")
})
body()