From 9c237b52dbca00646cf81473662674883dae9585 Mon Sep 17 00:00:00 2001 From: Mikhail Klementev Date: Thu, 18 May 2023 21:40:22 +0000 Subject: [PATCH] test: remove obsolete match test --- distro/debian/debian_test.go | 35 ----------------------------------- 1 file changed, 35 deletions(-) diff --git a/distro/debian/debian_test.go b/distro/debian/debian_test.go index a7d7e58..6e0f4fe 100644 --- a/distro/debian/debian_test.go +++ b/distro/debian/debian_test.go @@ -1,44 +1,9 @@ package debian import ( - "os" "testing" - - "code.dumpstack.io/tools/out-of-tree/config" - "code.dumpstack.io/tools/out-of-tree/distro" - "code.dumpstack.io/tools/out-of-tree/fs" ) -func TestMatch(t *testing.T) { - if os.Getenv("CI") != "" { - t.Skip("skip testing in CI") - } - - t.Log("tested with cache by default") - - tmp, err := fs.TempDir() - if err != nil { - return - } - defer os.RemoveAll(tmp) - - config.Directory = tmp - - km := config.Target{ - Distro: distro.Distro{Release: "7"}, - Kernel: config.Kernel{Regex: "3.2.0-4"}, - } - - pkgs, err := Match(km) - if err != nil { - t.Fatal(err) - } - - if len(pkgs) == 0 { - t.Fatal("no packages") - } -} - func TestKernelRelease(t *testing.T) { type testcase struct { Deb string