use the role map, luke!
This commit is contained in:
parent
448bbf3710
commit
0e924edf0e
@ -18,7 +18,7 @@ func main() {
|
||||
func doRun(roles map[string]func(*TestEnvironment) error) run.InitializedTestCaseFn {
|
||||
return func(runenv *runtime.RunEnv, initCtx *run.InitContext) error {
|
||||
role := runenv.StringParam("role")
|
||||
proc, ok := baselineRoles[role]
|
||||
proc, ok := roles[role]
|
||||
if ok {
|
||||
return proc(&TestEnvironment{RunEnv: runenv, InitContext: initCtx})
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user