Skip to content

Commit 8632ef1

Browse files
committed
hive: Add --sim.exactmatch flag.
1 parent 67fdab2 commit 8632ef1

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

hive.go

+5
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ func main() {
2626
dockerOutput = flag.Bool("docker.output", false, "Relay all docker output to stderr.")
2727
simPattern = flag.String("sim", "", "Regular `expression` selecting the simulators to run.")
2828
simTestPattern = flag.String("sim.limit", "", "Regular `expression` selecting tests/suites (interpreted by simulators).")
29+
simTestExact = flag.Bool("sim.exactmatch", true, "Exact `expression` match for tests/suites (interpreted by simulators).")
2930
simParallelism = flag.Int("sim.parallelism", 1, "Max `number` of parallel clients/containers (interpreted by simulators).")
3031
simRandomSeed = flag.Int("sim.randomseed", 0, "Randomness seed number (interpreted by simulators).")
3132
simTestLimit = flag.Int("sim.testlimit", 0, "[DEPRECATED] Max `number` of tests to execute per client (interpreted by simulators).")
@@ -73,6 +74,10 @@ func main() {
7374
log15.Warn("--sim is ignored when using --dev mode")
7475
simList = nil
7576
}
77+
if *simTestExact && *simTestPattern != "" {
78+
pattern := regexp.QuoteMeta(*simTestPattern) + "$"
79+
simTestPattern = &pattern
80+
}
7681

7782
// Create the docker backends.
7883
dockerConfig := &libdocker.Config{

0 commit comments

Comments
 (0)