Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions hive.go
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ func main() {
dockerBuildOutput = flag.Bool("docker.buildoutput", false, "Relay only docker build output to stderr.")
simPattern = flag.String("sim", "", "Regular `expression` selecting the simulators to run.")
simTestPattern = flag.String("sim.limit", "", "Regular `expression` selecting tests/suites (interpreted by simulators).")
simTestExact = flag.Bool("sim.exact", true, "Exact `expression` match for tests/suites (interpreted by simulators).")
simParallelism = flag.Int("sim.parallelism", 1, "Max `number` of parallel clients/containers (interpreted by simulators).")
simRandomSeed = flag.Int("sim.randomseed", 0, "Randomness seed number (interpreted by simulators).")
simTestLimit = flag.Int("sim.testlimit", 0, "[DEPRECATED] Max `number` of tests to execute per client (interpreted by simulators).")
Expand Down Expand Up @@ -109,6 +110,10 @@ func main() {
slog.Warn("--sim is ignored when using --dev mode")
simList = nil
}
if *simTestExact && *simTestPattern != "" {
pattern := "^" + regexp.QuoteMeta(*simTestPattern) + "$"
simTestPattern = &pattern
}

// Create the docker backends.
dockerConfig := &libdocker.Config{
Expand Down