From bbfb7f28364d1da027410adfa8f179a39356f092 Mon Sep 17 00:00:00 2001 From: Patrick Ohly Date: Tue, 13 Dec 2022 09:06:09 +0100 Subject: [PATCH] test: skip image validation if govm is missing Not sure what changed in Jenkins, but "govm" is not found on all worker VMs anymore. --- pkg/imagefile/test/imagefiletest.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pkg/imagefile/test/imagefiletest.go b/pkg/imagefile/test/imagefiletest.go index fd4b34c69..097f29e04 100644 --- a/pkg/imagefile/test/imagefiletest.go +++ b/pkg/imagefile/test/imagefiletest.go @@ -105,6 +105,10 @@ func testImageFile(t TInterface, fs imagefile.FsType, size imagefile.Bytes, expe t.Log("for testing the image under QEMU, download files for a cluster and set REPO_ROOT and CLUSTER") return } + if _, err := exec.LookPath("govm"); err != nil { + t.Log("for testing the image under QEMU, install govm") + return + } env := []string{ "EXISTING_VM_FILE=" + file.Name(), os.ExpandEnv("PATH=${REPO_ROOT}/_work/bin:${PATH}"),