mirror of
https://github.com/clearlinux/docker.git
synced 2026-10-03 23:38:24 +00:00
Merge pull request #8415 from LK4D4/use_logs_in_builder
Use logs instead of attach for builder
This commit is contained in:
@@ -2833,3 +2833,22 @@ func TestBuildVerifySingleQuoteFails(t *testing.T) {
|
||||
|
||||
logDone("build - verify single quotes fail")
|
||||
}
|
||||
|
||||
func TestBuildVerboseOut(t *testing.T) {
|
||||
name := "testbuildverboseout"
|
||||
defer deleteImages(name)
|
||||
|
||||
_, out, err := buildImageWithOut(name,
|
||||
`FROM busybox
|
||||
RUN echo 123`,
|
||||
false)
|
||||
|
||||
if err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
if !strings.Contains(out, "\n123\n") {
|
||||
t.Fatalf("Output should contain %q: %q", "123", out)
|
||||
}
|
||||
|
||||
logDone("build - verbose output from commands")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user