Skip to content
This repository was archived by the owner on Oct 22, 2024. It is now read-only.

Commit bbfb7f2

Browse files
committed
test: skip image validation if govm is missing
Not sure what changed in Jenkins, but "govm" is not found on all worker VMs anymore.
1 parent c19b0f1 commit bbfb7f2

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

pkg/imagefile/test/imagefiletest.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,10 @@ func testImageFile(t TInterface, fs imagefile.FsType, size imagefile.Bytes, expe
105105
t.Log("for testing the image under QEMU, download files for a cluster and set REPO_ROOT and CLUSTER")
106106
return
107107
}
108+
if _, err := exec.LookPath("govm"); err != nil {
109+
t.Log("for testing the image under QEMU, install govm")
110+
return
111+
}
108112
env := []string{
109113
"EXISTING_VM_FILE=" + file.Name(),
110114
os.ExpandEnv("PATH=${REPO_ROOT}/_work/bin:${PATH}"),

0 commit comments

Comments
 (0)