debian-forge-composer/cmd/osbuild-image-tests/constants-travis.go
Ondřej Budai 00f903b879 tests/image: refactor constants
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.
2020-04-06 16:38:28 +02:00

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",
}