1
0

test: disable match image test until cache is implemented

This commit is contained in:
dump_stack() 2023-05-13 10:24:29 +00:00
parent ebc597ff0b
commit 28acc51417
Signed by: dump_stack
GPG Key ID: BE44DA8C062D87DC
2 changed files with 21 additions and 15 deletions

View File

@ -121,6 +121,7 @@ func kernelRelease(deb string) (r Release, err error) {
}
var (
CacheURL string
CachePath string
RefetchDays int = 7
)

View File

@ -2,25 +2,30 @@ package debian
import (
"testing"
"code.dumpstack.io/tools/out-of-tree/config"
// "github.com/cavaliergopher/grab/v3"
// "code.dumpstack.io/tools/out-of-tree/config"
)
func TestMatchImagePkg(t *testing.T) {
km := config.KernelMask{
ReleaseMask: "3.2.0-4",
DistroRelease: "7",
}
// func TestMatchImagePkg(t *testing.T) {
// km := config.KernelMask{
// ReleaseMask: "3.2.0-4",
// DistroRelease: "7",
// }
pkgs, err := MatchImagePkg(km)
if err != nil {
t.Fatal(err)
}
// resp, err := grab.Get(tmp, fileurl)
// if err != nil {
// t.Fatal(err)
// }
if len(pkgs) == 0 {
t.Fatal("no packages")
}
}
// pkgs, err := MatchImagePkg(km)
// if err != nil {
// t.Fatal(err)
// }
// if len(pkgs) == 0 {
// t.Fatal("no packages")
// }
// }
func TestParseKernelMajorMinor(t *testing.T) {
type testcase struct {