mirror of
https://github.com/docker/cli.git
synced 2026-01-13 18:22:35 +03:00
Make TestDaemonNoSpaceleftOnDeviceError linux only
Adds SameHostDaemon and DaemonIsLinux req's to TestDaemonNoSpaceleftOnDeviceError Signed-off-by: Brian Goff <cpuguy83@gmail.com> Upstream-commit: 44d3f2f71a9a522597655b7c8733422fe70c39a0 Component: engine
This commit is contained in:
@@ -1852,6 +1852,8 @@ func (s *DockerDaemonSuite) TestBridgeIPIsExcludedFromAllocatorPool(c *check.C)
|
||||
|
||||
// Test daemon for no space left on device error
|
||||
func (s *DockerDaemonSuite) TestDaemonNoSpaceleftOnDeviceError(c *check.C) {
|
||||
testRequires(c, SameHostDaemon, DaemonIsLinux)
|
||||
|
||||
// create a 2MiB image and mount it as graph root
|
||||
cmd := exec.Command("dd", "of=/tmp/testfs.img", "bs=1M", "seek=2", "count=0")
|
||||
if err := cmd.Run(); err != nil {
|
||||
|
||||
Reference in New Issue
Block a user