mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
Break out non-Windows sys/mount usage into helper
Rather than bifurcate the test completely, this lets us keep the test intact with a small function wrapper to allow the compiler to build the code that'll never be called on Windows, on Windows. Signed-off-by: Paul "TBBle" Hampson <Paul.Hampson@Pobox.com>
This commit is contained in:
parent
3e3f3d7168
commit
7bb729e928
3 changed files with 16 additions and 2 deletions
9
integration-cli/docker_api_containers_unix_test.go
Normal file
9
integration-cli/docker_api_containers_unix_test.go
Normal file
|
@ -0,0 +1,9 @@
|
|||
// +build !windows
|
||||
|
||||
package main
|
||||
|
||||
import "github.com/moby/sys/mount"
|
||||
|
||||
func mountWrapper(device, target, mType, options string) error {
|
||||
return mount.Mount(device, target, mType, options)
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue