From 6ee03244167668cc9f654ad370f655b3bb07a2f9 Mon Sep 17 00:00:00 2001 From: Kenjiro Nakayama Date: Thu, 7 Oct 2021 14:00:36 +0900 Subject: [PATCH] Allow to skip non-alpha/beta test The `--skip-tests` flag was introduced to skip alpha or beta tests before and it does not allow to skip stable test. But now, to support gateway-api, we need to skip some tests as some funtions are not supported even by the upstream. --- test/conformance/ingress/run.go | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/test/conformance/ingress/run.go b/test/conformance/ingress/run.go index 0ad4aedc2..d914521d0 100644 --- a/test/conformance/ingress/run.go +++ b/test/conformance/ingress/run.go @@ -63,13 +63,16 @@ var alphaTests = map[string]func(t *testing.T){ // // Depending on the options it may test alpha and beta features func RunConformance(t *testing.T) { + skipTests := skipTests() for name, test := range stableTests { + if _, ok := skipTests[name]; ok { + t.Run(name, skipFunc) + continue + } t.Run(name, test) } - skipTests := skipTests() - // TODO(dprotaso) we'll need something more robust // in the long term that lets downstream // implementations to better select which tests