File tree Expand file tree Collapse file tree 2 files changed +7
-2
lines changed Expand file tree Collapse file tree 2 files changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -111,7 +111,7 @@ struct TestConfig {
111
111
var tags = Set < BenchmarkCategory > ( )
112
112
113
113
/// Tests tagged with any of these will not be executed
114
- var skipTags : Set < BenchmarkCategory > = [ . unstable, . String ]
114
+ var skipTags : Set < BenchmarkCategory > = [ . unstable, . skip ]
115
115
116
116
/// The scalar multiple of the amount of times a test should be run. This
117
117
/// enables one to cause tests to run for N iterations longer than they
@@ -194,7 +194,9 @@ struct TestConfig {
194
194
}
195
195
196
196
if let x = benchArgs. optionalArgsMap [ " --skip-tags " ] {
197
- if x. isEmpty { return . fail( " --skip-tags requires a value " ) }
197
+ // if the --skip-tags parameter is specified, we need to ignore the
198
+ // default and start from a clean slate.
199
+ skipTags = [ ]
198
200
199
201
// We support specifying multiple tags by splitting on comma, i.e.:
200
202
//
Original file line number Diff line number Diff line change @@ -65,6 +65,9 @@ public enum BenchmarkCategory : String {
65
65
// reimplementing or call into code paths that have known opportunities for
66
66
// significant optimization.
67
67
case cpubench
68
+
69
+ // Explict skip marker
70
+ case skip
68
71
}
69
72
70
73
public struct BenchmarkInfo {
You can’t perform that action at this time.
0 commit comments