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

Commit

Permalink
test: skip image validation if govm is missing
Browse files Browse the repository at this point in the history
Not sure what changed in Jenkins, but "govm" is not found on all
worker VMs anymore.
  • Loading branch information
pohly committed Dec 13, 2022
1 parent c19b0f1 commit bbfb7f2
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pkg/imagefile/test/imagefiletest.go
Original file line number Diff line number Diff line change
Expand Up @@ -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}"),
Expand Down

0 comments on commit bbfb7f2

Please sign in to comment.