It's not very clear that the constants are indeed constants. This commit moves them to a new struct. This way it should be more clear that those values are constants.
32 lines
635 B
Go
32 lines
635 B
Go
// +build travis
|
|
|
|
package main
|
|
|
|
import "os/exec"
|
|
|
|
func getOsbuildCommand(store string) *exec.Cmd {
|
|
cmd := exec.Command(
|
|
"python3",
|
|
"-m", "osbuild",
|
|
"--libdir", ".",
|
|
"--store", store,
|
|
"--json",
|
|
"-",
|
|
)
|
|
cmd.Dir = "osbuild"
|
|
return cmd
|
|
}
|
|
|
|
var testPaths = struct {
|
|
imageInfo string
|
|
privateKey string
|
|
testCasesDirectory string
|
|
userData string
|
|
metaData string
|
|
}{
|
|
imageInfo: "tools/image-info",
|
|
privateKey: "test/keyring/id_rsa",
|
|
testCasesDirectory: "test/cases",
|
|
userData: "test/cloud-init/user-data",
|
|
metaData: "test/cloud-init/meta-data",
|
|
}
|