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.
This commit is contained in:
Lars Karlitski 2020-07-17 20:29:17 +02:00 committed by Tom Gundersen
parent 460369b32b
commit f38d55da88

View file

@ -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)