mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
integration-cli: remove TestBuildContChar
This old test is failing after an edge-case change in dockerfile parsing considered a bugfix: https://github.com/moby/buildkit/pull/1559 Instead of fixing the test, I suggest removing it as there are already tests for it in BuildKit. Signed-off-by: Tibor Vass <tibor@docker.com>
This commit is contained in:
parent
39f9c1b5d1
commit
beff0a5f2c
1 changed files with 0 additions and 24 deletions
|
@ -5608,30 +5608,6 @@ func (s *DockerSuite) TestBuildWithExtraHostInvalidFormat(c *testing.T) {
|
|||
|
||||
}
|
||||
|
||||
func (s *DockerSuite) TestBuildContChar(c *testing.T) {
|
||||
name := "testbuildcontchar"
|
||||
|
||||
buildImage(name, build.WithDockerfile(`FROM busybox\`)).Assert(c, icmd.Expected{
|
||||
Out: "Step 1/1 : FROM busybox",
|
||||
})
|
||||
|
||||
result := buildImage(name, build.WithDockerfile(`FROM busybox
|
||||
RUN echo hi \`))
|
||||
result.Assert(c, icmd.Success)
|
||||
assert.Assert(c, strings.Contains(result.Combined(), "Step 1/2 : FROM busybox"))
|
||||
assert.Assert(c, strings.Contains(result.Combined(), "Step 2/2 : RUN echo hi\n"))
|
||||
result = buildImage(name, build.WithDockerfile(`FROM busybox
|
||||
RUN echo hi \\`))
|
||||
result.Assert(c, icmd.Success)
|
||||
assert.Assert(c, strings.Contains(result.Combined(), "Step 1/2 : FROM busybox"))
|
||||
assert.Assert(c, strings.Contains(result.Combined(), "Step 2/2 : RUN echo hi \\\n"))
|
||||
result = buildImage(name, build.WithDockerfile(`FROM busybox
|
||||
RUN echo hi \\\`))
|
||||
result.Assert(c, icmd.Success)
|
||||
assert.Assert(c, strings.Contains(result.Combined(), "Step 1/2 : FROM busybox"))
|
||||
assert.Assert(c, strings.Contains(result.Combined(), "Step 2/2 : RUN echo hi \\\\\n"))
|
||||
}
|
||||
|
||||
func (s *DockerSuite) TestBuildMultiStageCopyFromSyntax(c *testing.T) {
|
||||
dockerfile := `
|
||||
FROM busybox AS first
|
||||
|
|
Loading…
Add table
Reference in a new issue