debian-forge-composer/cmd/osbuild-image-tests/constants-travis.go
Ondřej Budai dc9c82fd96 tests/image: add path constants for Travis CI
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
2020-03-16 21:10:57 +01:00

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"