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
This commit is contained in:
Ondřej Budai 2020-03-16 15:54:00 +01:00 committed by Tom Gundersen
parent 03ae0007af
commit dc9c82fd96
2 changed files with 26 additions and 0 deletions

View file

@ -0,0 +1,24 @@
// +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"

View file

@ -1,3 +1,5 @@
// +build !travis
package main
import "os/exec"