mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
Rebased changes buildfile_test
This commit is contained in:
parent
1267e15b0f
commit
40f1e4edbe
1 changed files with 2 additions and 3 deletions
|
@ -93,7 +93,7 @@ CMD Hello world
|
||||||
|
|
||||||
{
|
{
|
||||||
`
|
`
|
||||||
from docker-ut
|
from %s
|
||||||
VOLUME /test
|
VOLUME /test
|
||||||
CMD Hello world
|
CMD Hello world
|
||||||
`,
|
`,
|
||||||
|
@ -133,14 +133,13 @@ func TestVolume(t *testing.T) {
|
||||||
|
|
||||||
srv := &Server{
|
srv := &Server{
|
||||||
runtime: runtime,
|
runtime: runtime,
|
||||||
lock: &sync.Mutex{},
|
|
||||||
pullingPool: make(map[string]struct{}),
|
pullingPool: make(map[string]struct{}),
|
||||||
pushingPool: make(map[string]struct{}),
|
pushingPool: make(map[string]struct{}),
|
||||||
}
|
}
|
||||||
|
|
||||||
buildfile := NewBuildFile(srv, ioutil.Discard)
|
buildfile := NewBuildFile(srv, ioutil.Discard)
|
||||||
imgId, err := buildfile.Build(mkTestContext(`
|
imgId, err := buildfile.Build(mkTestContext(`
|
||||||
from docker-ut
|
from %s
|
||||||
VOLUME /test
|
VOLUME /test
|
||||||
CMD Hello world
|
CMD Hello world
|
||||||
`, nil, t))
|
`, nil, t))
|
||||||
|
|
Loading…
Add table
Reference in a new issue