Allow tests to specify their own events filter routine
Signed-off-by: Kenfe-Mickael Laventure <mickael.laventure@gmail.com>
This commit is contained in:
parent
aa976325f5
commit
203651e774
2 changed files with 23 additions and 7 deletions
|
@ -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)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue