Skip to content

Commit 06c7d9a

Browse files
authored
Merge pull request kubernetes#125966 from pohly/e2e-framework-label-filter-skip-fix
e2e framework: don't add default skip when --label-filter is used
2 parents 7127246 + 4bed71d commit 06c7d9a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/e2e/framework/test_context.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -399,7 +399,7 @@ func CreateGinkgoConfig() (types.SuiteConfig, types.ReporterConfig) {
399399
// Randomize specs as well as suites
400400
suiteConfig.RandomizeAllSpecs = true
401401
// Disable skipped tests unless they are explicitly requested.
402-
if len(suiteConfig.FocusStrings) == 0 && len(suiteConfig.SkipStrings) == 0 {
402+
if len(suiteConfig.FocusStrings) == 0 && len(suiteConfig.SkipStrings) == 0 && suiteConfig.LabelFilter == "" {
403403
suiteConfig.SkipStrings = []string{`\[Flaky\]|\[Feature:.+\]`}
404404
}
405405
return suiteConfig, reporterConfig

0 commit comments

Comments
 (0)