reg/vendor/github.com/docker/docker-ce/components/engine/integration-cli/test_vars_test.go
Jess Frazelle 8e5eba8735
switch to dep
Signed-off-by: Jess Frazelle <acidburn@microsoft.com>
2017-12-11 14:50:55 -05:00

12 lines
377 B
Go

package main
// sleepCommandForDaemonPlatform is a helper function that determines what
// the command is for a sleeping container based on the daemon platform.
// The Windows busybox image does not have a `top` command.
func sleepCommandForDaemonPlatform() []string {
if testEnv.DaemonPlatform() == "windows" {
return []string{"sleep", "240"}
}
return []string{"top"}
}