From f38d55da88700384ecd35b79cf938aee0eff45f6 Mon Sep 17 00:00:00 2001 From: Lars Karlitski Date: Fri, 17 Jul 2020 20:29:17 +0200 Subject: [PATCH] distro/tests: use test case filename as test name These tests used the image type as test name, which is ambiguous. Use the file name for the test case instead. --- internal/distro/distro_test_common/distro_test_common.go | 3 ++- 1 file changed, 2 insertions(+), 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 8a2d95bca..56db3c971 100644 --- a/internal/distro/distro_test_common/distro_test_common.go +++ b/internal/distro/distro_test_common/distro_test_common.go @@ -4,6 +4,7 @@ import ( "encoding/json" "fmt" "io/ioutil" + "path" "path/filepath" "testing" @@ -63,7 +64,7 @@ func TestDistro_Manifest(t *testing.T, pipelinePath string, prefix string, distr CheckGPG: repo.CheckGPG, } } - t.Run(tt.ComposeRequest.ImageType, func(t *testing.T) { + t.Run(path.Base(fileName), func(t *testing.T) { distros, err := distro.NewRegistry(distros...) require.NoError(t, err) d := distros.GetDistro(tt.ComposeRequest.Distro)