File tree 3 files changed +12
-1
lines changed
3 files changed +12
-1
lines changed Original file line number Diff line number Diff line change @@ -52,7 +52,7 @@ func TestConformance(t *testing.T) {
52
52
53
53
supportedFeatures := suite .ParseSupportedFeatures (* flags .SupportedFeatures )
54
54
exemptFeatures := suite .ParseSupportedFeatures (* flags .ExemptFeatures )
55
-
55
+ skipTests := suite . ParseSkipTests ( * flags . SkipTests )
56
56
namespaceLabels := suite .ParseNamespaceLabels (* flags .NamespaceLabels )
57
57
58
58
t .Logf ("Running conformance tests with %s GatewayClass\n cleanup: %t\n debug: %t\n enable all features: %t \n supported features: [%v]\n exempt features: [%v]" ,
@@ -72,6 +72,7 @@ func TestConformance(t *testing.T) {
72
72
ExemptFeatures : exemptFeatures ,
73
73
EnableAllSupportedFeatures : * flags .EnableAllSupportedFeatures ,
74
74
NamespaceLabels : namespaceLabels ,
75
+ SkipTests : skipTests ,
75
76
})
76
77
cSuite .Setup (t )
77
78
Original file line number Diff line number Diff line change 28
28
ShowDebug = flag .Bool ("debug" , false , "Whether to print debug logs" )
29
29
CleanupBaseResources = flag .Bool ("cleanup-base-resources" , true , "Whether to cleanup base test resources after the run" )
30
30
SupportedFeatures = flag .String ("supported-features" , "" , "Supported features included in conformance tests suites" )
31
+ SkipTests = flag .String ("skip-tests" , "" , "Comma-separated list of tests to skip" )
31
32
ExemptFeatures = flag .String ("exempt-features" , "" , "Exempt Features excluded from conformance tests suites" )
32
33
EnableAllSupportedFeatures = flag .Bool ("all-features" , false , "Whether to enable all supported features for conformance tests" )
33
34
NamespaceLabels = flag .String ("namespace-labels" , "" , "Comma-separated list of name=value labels to add to test namespaces" )
Original file line number Diff line number Diff line change @@ -261,3 +261,12 @@ func ParseNamespaceLabels(f string) map[string]string {
261
261
}
262
262
return res
263
263
}
264
+
265
+ // ParseSkipTests parses flag arguments and converts the string to
266
+ // []string containing the tests to be skipped.
267
+ func ParseSkipTests (t string ) []string {
268
+ if t == "" {
269
+ return nil
270
+ }
271
+ return strings .Split (t , "," )
272
+ }
You can’t perform that action at this time.
0 commit comments