use the role map, luke!

This commit is contained in:
vyzo 2020-06-24 14:02:20 +03:00
parent 448bbf3710
commit 0e924edf0e

View File

@ -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})
}