distro: print more information in case the test fails

This helps when looking for the issue because the previous input did not
mention which specific qcow2 test case failed.
This commit is contained in:
Martin Sehnoutka 2020-07-15 12:54:42 +02:00 committed by Tom Gundersen
parent a38ee2e7a7
commit 60269abdff

View file

@ -95,7 +95,7 @@ func TestDistro_Manifest(t *testing.T, pipelinePath string, prefix string, distr
return
}
if tt.Manifest != nil {
require.JSONEq(t, string(tt.Manifest), string(got))
require.JSONEqf(t, string(tt.Manifest), string(got), "Distro: %s\nArch: %s\nImage type: %s\nTest case file: %s\n", d.Name(), arch.Name(), imageType.Name(), fileName)
}
})
}