Skip to content

Commit b3a2984

Browse files
committed
hive: Add --sim.exactmatch flag.
1 parent 0b405cd commit b3a2984

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

hive.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ func main() {
5050
dockerBuildOutput = flag.Bool("docker.buildoutput", false, "Relay only docker build output to stderr.")
5151
simPattern = flag.String("sim", "", "Regular `expression` selecting the simulators to run.")
5252
simTestPattern = flag.String("sim.limit", "", "Regular `expression` selecting tests/suites (interpreted by simulators).")
53+
simTestExact = flag.Bool("sim.exact", true, "Exact `expression` match for tests/suites (interpreted by simulators).")
5354
simParallelism = flag.Int("sim.parallelism", 1, "Max `number` of parallel clients/containers (interpreted by simulators).")
5455
simRandomSeed = flag.Int("sim.randomseed", 0, "Randomness seed number (interpreted by simulators).")
5556
simTestLimit = flag.Int("sim.testlimit", 0, "[DEPRECATED] Max `number` of tests to execute per client (interpreted by simulators).")
@@ -109,6 +110,10 @@ func main() {
109110
slog.Warn("--sim is ignored when using --dev mode")
110111
simList = nil
111112
}
113+
if *simTestExact && *simTestPattern != "" {
114+
pattern := "^" + regexp.QuoteMeta(*simTestPattern) + "$"
115+
simTestPattern = &pattern
116+
}
112117

113118
// Create the docker backends.
114119
dockerConfig := &libdocker.Config{

0 commit comments

Comments
 (0)