1
0
Fork 0

test: use tmpdir to not interfere with other tests

timestamps
dump_stack() 2023-05-13 12:56:25 +00:00
parent dc8d667930
commit 5975898225
Signed by: dump_stack
GPG Key ID: BE44DA8C062D87DC
1 changed files with 10 additions and 0 deletions

View File

@ -1,14 +1,24 @@
package debian
import (
"os"
"testing"
"code.dumpstack.io/tools/out-of-tree/config"
"code.dumpstack.io/tools/out-of-tree/fs"
)
func TestMatchImagePkg(t *testing.T) {
t.Log("tested with cache by default")
tmp, err := fs.TempDir()
if err != nil {
return
}
defer os.RemoveAll(tmp)
config.Directory = tmp
km := config.KernelMask{
ReleaseMask: "3.2.0-4",
DistroRelease: "7",