Caused by a merge conflict.
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
| ... | ... |
@@ -4783,7 +4783,7 @@ func (s *DockerSuite) TestBuildBuildTimeArgMultipleFrom(c *check.C) {
|
| 4783 | 4783 |
ARG bar=def |
| 4784 | 4784 |
RUN env > /out` |
| 4785 | 4785 |
|
| 4786 |
- result := buildImage(imgName, withDockerfile(dockerfile)) |
|
| 4786 |
+ result := buildImage(imgName, build.WithDockerfile(dockerfile)) |
|
| 4787 | 4787 |
result.Assert(c, icmd.Success) |
| 4788 | 4788 |
|
| 4789 | 4789 |
result = icmd.RunCmd(icmd.Cmd{
|
| ... | ... |
@@ -4814,7 +4814,7 @@ func (s *DockerSuite) TestBuildBuildTimeUnusedArgMultipleFrom(c *check.C) {
|
| 4814 | 4814 |
ARG bar |
| 4815 | 4815 |
RUN env > /out` |
| 4816 | 4816 |
|
| 4817 |
- result := buildImage(imgName, withDockerfile(dockerfile), withBuildFlags( |
|
| 4817 |
+ result := buildImage(imgName, build.WithDockerfile(dockerfile), cli.WithFlags( |
|
| 4818 | 4818 |
"--build-arg", fmt.Sprintf("baz=abc")))
|
| 4819 | 4819 |
result.Assert(c, icmd.Success) |
| 4820 | 4820 |
c.Assert(result.Combined(), checker.Contains, "[Warning]") |
| ... | ... |
@@ -5645,7 +5645,7 @@ func (s *DockerSuite) TestBuildCacheMultipleFrom(c *check.C) {
|
| 5645 | 5645 |
// second part of dockerfile was a repeat of first so should be cached |
| 5646 | 5646 |
c.Assert(strings.Count(result.Combined(), "Using cache"), checker.Equals, 1) |
| 5647 | 5647 |
|
| 5648 |
- result = buildImage("build2", withBuildFlags("--cache-from=build1"), withExternalBuildContext(ctx))
|
|
| 5648 |
+ result = buildImage("build2", cli.WithFlags("--cache-from=build1"), withExternalBuildContext(ctx))
|
|
| 5649 | 5649 |
result.Assert(c, icmd.Success) |
| 5650 | 5650 |
// now both parts of dockerfile should be cached |
| 5651 | 5651 |
c.Assert(strings.Count(result.Combined(), "Using cache"), checker.Equals, 2) |