Allow tests to specify their own events filter routine

Signed-off-by: Kenfe-Mickael Laventure <mickael.laventure@gmail.com>
This commit is contained in:
Kenfe-Mickael Laventure 2016-03-28 16:22:17 -07:00
parent aa976325f5
commit 203651e774
2 changed files with 23 additions and 7 deletions

View file

@ -102,6 +102,14 @@ func CreateBundleWithFilter(source, name string, args []string, filter func(spec
return nil
}
func GetBundle(name string) *Bundle {
bundle, ok := bundleMap[name]
if !ok {
return nil
}
return &bundle
}
func CreateBusyboxBundle(name string, args []string) error {
return CreateBundleWithFilter("busybox", name, args, nil)
}