first commit
This commit is contained in:
18
test/container/containerengine/containerengine_options.go
Normal file
18
test/container/containerengine/containerengine_options.go
Normal file
@@ -0,0 +1,18 @@
|
||||
package containerengine
|
||||
|
||||
import (
|
||||
"os"
|
||||
"strings"
|
||||
"testing"
|
||||
)
|
||||
|
||||
type ContainterClientOption func(*ContainerClient)
|
||||
|
||||
func WithTestCommandLogger(t *testing.T) ContainterClientOption {
|
||||
return func(cc *ContainerClient) {
|
||||
cc.logger = t
|
||||
cc.logOptions = logOptions{
|
||||
logCommands: strings.ToLower(os.Getenv("TEST_LOG_CONTAINER_COMMANDS")) == "true",
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user