From 60269abdfff6724c6a857240562f66ec42691a35 Mon Sep 17 00:00:00 2001 From: Martin Sehnoutka Date: Wed, 15 Jul 2020 12:54:42 +0200 Subject: [PATCH] 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. --- internal/distro/distro_test_common/distro_test_common.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/distro/distro_test_common/distro_test_common.go b/internal/distro/distro_test_common/distro_test_common.go index 56db3c971..b8313fcfe 100644 --- a/internal/distro/distro_test_common/distro_test_common.go +++ b/internal/distro/distro_test_common/distro_test_common.go @@ -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) } }) }