Merge pull request #55 from filecoin-project/fix/bug
use the role map, luke!
This commit is contained in:
commit
2bfbc6a314
@ -18,7 +18,7 @@ func main() {
|
|||||||
func doRun(roles map[string]func(*TestEnvironment) error) run.InitializedTestCaseFn {
|
func doRun(roles map[string]func(*TestEnvironment) error) run.InitializedTestCaseFn {
|
||||||
return func(runenv *runtime.RunEnv, initCtx *run.InitContext) error {
|
return func(runenv *runtime.RunEnv, initCtx *run.InitContext) error {
|
||||||
role := runenv.StringParam("role")
|
role := runenv.StringParam("role")
|
||||||
proc, ok := baselineRoles[role]
|
proc, ok := roles[role]
|
||||||
if ok {
|
if ok {
|
||||||
return proc(&TestEnvironment{RunEnv: runenv, InitContext: initCtx})
|
return proc(&TestEnvironment{RunEnv: runenv, InitContext: initCtx})
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user