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:
parent
460369b32b
commit
f38d55da88
1 changed files with 2 additions and 1 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue