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:
commit
6eb6eaf718
1 changed files with 12 additions and 4 deletions
|
@ -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()
|
||||
|
||||
|
|
Loading…
Reference in a new issue