1
0

feat: implement openSUSE 42+ support

This commit is contained in:
2023-06-15 15:24:29 +00:00
parent c12b0a8829
commit a6944050cc
16 changed files with 253 additions and 25 deletions

2
cache/cache.go vendored
View File

@ -39,7 +39,7 @@ func unpackTar(archive, destination string) (err error) {
return
}
func DownloadQemuImage(path, file string) (err error) {
func DownloadRootFS(path, file string) (err error) {
tmp, err := fs.TempDir()
if err != nil {
return

4
cache/cache_test.go vendored
View File

@ -9,7 +9,7 @@ import (
"code.dumpstack.io/tools/out-of-tree/fs"
)
func TestDownloadQemuImage(t *testing.T) {
func TestDownloadRootFS(t *testing.T) {
tmp, err := ioutil.TempDir("", "out-of-tree_")
if err != nil {
return
@ -18,7 +18,7 @@ func TestDownloadQemuImage(t *testing.T) {
file := "out_of_tree_ubuntu_12__04.img"
err = DownloadQemuImage(tmp, file)
err = DownloadRootFS(tmp, file)
if err != nil {
t.Fatal(err)
}