Skip to content

Commit

Permalink
np: Better log in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
gabyx committed May 10, 2022
1 parent 597f533 commit 72754eb
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion integration/integration_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -512,7 +512,6 @@ func TestLayers(t *testing.T) {
if _, ok := imageBuilder.DockerfilesToIgnore[dockerfileTest]; ok {
t.SkipNow()
}

buildImage(t, dockerfileTest, imageBuilder)

// Pull the kaniko image
Expand All @@ -531,6 +530,8 @@ func TestLayers(t *testing.T) {
}

func buildImage(t *testing.T, dockerfile string, imageBuilder *DockerFileBuilder) {
t.Logf("Building image '%v'...", dockerfile)

if err := imageBuilder.BuildImage(t, config, dockerfilesPath, dockerfile); err != nil {
t.Errorf("Error building image: %s", err)
t.FailNow()
Expand Down

0 comments on commit 72754eb

Please sign in to comment.