feat: implement openSUSE 42+ support
This commit is contained in:
2
cache/cache.go
vendored
2
cache/cache.go
vendored
@ -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
4
cache/cache_test.go
vendored
@ -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)
|
||||
}
|
||||
|
Reference in New Issue
Block a user