1
0

feat: add release to debian kernel

This commit is contained in:
2023-05-28 09:38:09 +00:00
parent 4fca6b07e1
commit b6bc9b36c5
3 changed files with 53 additions and 15 deletions

View File

@@ -6,9 +6,9 @@ import (
"github.com/davecgh/go-spew/spew"
)
func TestGetRepo(t *testing.T) {
func TestGetRepos(t *testing.T) {
// existing
infos, err := GetRepo("debian", "linux-image-3.8-trunk-amd64",
infos, err := GetRepos("debian", "linux-image-3.8-trunk-amd64",
"amd64", "3.8.2-1~experimental.1")
if err != nil {
t.Fatal(err)
@@ -17,7 +17,7 @@ func TestGetRepo(t *testing.T) {
t.Log(spew.Sdump(infos))
// non-existing
infos, err = GetRepo("debian", "meh", "amd64", "meh")
infos, err = GetRepos("debian", "meh", "amd64", "meh")
if err == nil {
t.Fatalf("should not be ok, result: %s", spew.Sdump(infos))
}