The new set of constants allows to run the tests on Travis. The tests must be build by: go build -tags travis ./cmd/osbuild-image-tests
24 lines
468 B
Go
24 lines
468 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 imageInfoPath = "tools/image-info"
|
|
var privateKeyPath = "test/keyring/id_rsa"
|
|
var testCasesDirectoryPath = "test/cases"
|
|
var userDataPath = "test/cloud-init/user-data"
|
|
var metaDataPath = "test/cloud-init/meta-data"
|