1
0
Fork 0
mirror of https://github.com/moby/moby.git synced 2022-11-09 12:21:53 -05:00

Merge pull request #26720 from AkihiroSuda/fix-TestBuildApiDockerFileRemote

[test] Fix TestBuildApiDockerFileRemote
This commit is contained in:
Sebastiaan van Stijn 2016-09-20 17:57:01 +02:00 committed by GitHub
commit 6eb6eaf718

View file

@ -13,12 +13,20 @@ import (
func (s *DockerSuite) TestBuildApiDockerFileRemote(c *check.C) {
testRequires(c, NotUserNamespace)
server, err := fakeStorage(map[string]string{
"testD": `FROM busybox
var testD string
if daemonPlatform == "windows" {
testD = `FROM busybox
COPY * /tmp/
RUN find / -name ba*
RUN find /tmp/`,
})
RUN find /tmp/`
} else {
// -xdev is required because sysfs can cause EPERM
testD = `FROM busybox
COPY * /tmp/
RUN find / -xdev -name ba*
RUN find /tmp/`
}
server, err := fakeStorage(map[string]string{"testD": testD})
c.Assert(err, checker.IsNil)
defer server.Close()