The cmd/osbuild-image-tests package is becoming bigger than I would like to. It will be nice to split it to some smaller pieces at some point. This commit does the first step - splits off the first subpackage containing all the constants.
32 lines
640 B
Go
32 lines
640 B
Go
// +build travis
|
|
|
|
package constants
|
|
|
|
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",
|
|
}
|