Skip to content

Commit a071b96

Browse files
committed
tests/ci: only install qemu-user-static if QEMUSTATIC is set
In an upcoming patch, arm64 hosts will default to using bhyve to run CI. However, emulators/qemu-user-static does not exist for arm64, and is not needed when the target is also arm64. This patch ensures that qemu-user-static will only be requested for install if QEMUSTATIC is set. Signed-off-by: Siva Mahadevan <[email protected]> Sponsored by: The FreeBSD Foundation
1 parent 137c065 commit a071b96

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/ci/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ portinstall-pkg: .PHONY
146146
.endif
147147

148148
portinstall-qemu: portinstall-pkg .PHONY
149-
.if !exists(/usr/local/bin/qemu-${QEMU_ARCH}-static)
149+
.if !empty(QEMUSTATIC) && !exists(${QEMUSTATIC})
150150
env ASSUME_ALWAYS_YES=yes pkg install emulators/qemu-user-static
151151
.endif
152152
.if !exists(${QEMUBIN})

0 commit comments

Comments
 (0)