harness: run tests with required tags if specified by name
Even if a required tag was not given, I think it's more ergonomic to
still run that test if the name was provided.
@@ -440,7 +440,9 @@ func filterTests(tests map[string]*register.Test, patterns []string, pltfrm stri
}
}
- if t.RequiredTag != "" && !tagMatch {
+ // default to skipping tests with required tags unless the tag was given *or* a
+ // matching non-empty name pattern matches
+ if t.RequiredTag != "" && !tagMatch && (noPattern || !match) {
continue
}
