INNER CODE UNIT · Go
TestBuildMultipleTags
genuinetools/img · build_test.go:228
func TestBuildMultipleTags(t *testing.T) {
names := []string{"testbuildmultipletags", "testbuildmultipletags:v1", "testbuildmultipletagsv1"}
args := []string{"build"}
for _, name := range names {
args = append(args, "-t", name)
}
args = append(args, "-")
_, err := doRun(args, withDockerfile(`
FROM scratch
`))
if err != nil {
t.Logf("img %v failed unexpectedly: %v", args, err)
t.FailNow()
}
}