mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
Fix integration tests build errors
Caused by a merge conflict. Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
This commit is contained in:
parent
8008f65293
commit
4c7710d5d0
1 changed files with 3 additions and 3 deletions
|
@ -4783,7 +4783,7 @@ func (s *DockerSuite) TestBuildBuildTimeArgMultipleFrom(c *check.C) {
|
||||||
ARG bar=def
|
ARG bar=def
|
||||||
RUN env > /out`
|
RUN env > /out`
|
||||||
|
|
||||||
result := buildImage(imgName, withDockerfile(dockerfile))
|
result := buildImage(imgName, build.WithDockerfile(dockerfile))
|
||||||
result.Assert(c, icmd.Success)
|
result.Assert(c, icmd.Success)
|
||||||
|
|
||||||
result = icmd.RunCmd(icmd.Cmd{
|
result = icmd.RunCmd(icmd.Cmd{
|
||||||
|
@ -4814,7 +4814,7 @@ func (s *DockerSuite) TestBuildBuildTimeUnusedArgMultipleFrom(c *check.C) {
|
||||||
ARG bar
|
ARG bar
|
||||||
RUN env > /out`
|
RUN env > /out`
|
||||||
|
|
||||||
result := buildImage(imgName, withDockerfile(dockerfile), withBuildFlags(
|
result := buildImage(imgName, build.WithDockerfile(dockerfile), cli.WithFlags(
|
||||||
"--build-arg", fmt.Sprintf("baz=abc")))
|
"--build-arg", fmt.Sprintf("baz=abc")))
|
||||||
result.Assert(c, icmd.Success)
|
result.Assert(c, icmd.Success)
|
||||||
c.Assert(result.Combined(), checker.Contains, "[Warning]")
|
c.Assert(result.Combined(), checker.Contains, "[Warning]")
|
||||||
|
@ -5645,7 +5645,7 @@ func (s *DockerSuite) TestBuildCacheMultipleFrom(c *check.C) {
|
||||||
// second part of dockerfile was a repeat of first so should be cached
|
// second part of dockerfile was a repeat of first so should be cached
|
||||||
c.Assert(strings.Count(result.Combined(), "Using cache"), checker.Equals, 1)
|
c.Assert(strings.Count(result.Combined(), "Using cache"), checker.Equals, 1)
|
||||||
|
|
||||||
result = buildImage("build2", withBuildFlags("--cache-from=build1"), withExternalBuildContext(ctx))
|
result = buildImage("build2", cli.WithFlags("--cache-from=build1"), withExternalBuildContext(ctx))
|
||||||
result.Assert(c, icmd.Success)
|
result.Assert(c, icmd.Success)
|
||||||
// now both parts of dockerfile should be cached
|
// now both parts of dockerfile should be cached
|
||||||
c.Assert(strings.Count(result.Combined(), "Using cache"), checker.Equals, 2)
|
c.Assert(strings.Count(result.Combined(), "Using cache"), checker.Equals, 2)
|
||||||
|
|
Loading…
Reference in a new issue