testing: add test.skip

Fixes #3056
This commit is contained in:
Damian Gryski
2023-03-31 12:59:14 -07:00
committed by Damian Gryski
parent ee81c31884
commit 63aaa43072
4 changed files with 14 additions and 6 deletions
+1 -1
View File
@@ -365,7 +365,7 @@ func runBenchmarks(matchString func(pat, str string) (bool, error), benchmarks [
return true
}
ctx := &benchContext{
match: newMatcher(matchString, *matchBenchmarks, "-test.bench", ""),
match: newMatcher(matchString, *matchBenchmarks, "-test.bench", flagSkipRegexp),
}
var bs []InternalBenchmark
for _, Benchmark := range benchmarks {