gokrazy: add check for qemu

This is a small quality-of-life change for natlab tests. Running the
tests without qemu results in an error reading something like 'qemu-img:
file not found', which is not too helpful if you don't know the
underlying infrastructure. With this change, the error now reads
'please install qemu'.

Updates #cleanup

Signed-off-by: Harry Harpham <harry@tailscale.com>
This commit is contained in:
Harry Harpham 2026-03-31 09:22:54 -06:00
parent 87388ceea9
commit 32f9c76aa2
No known key found for this signature in database

View File

@ -9,5 +9,6 @@ qemu: image
# For natlab integration tests:
natlab:
@command -v qemu-img > /dev/null 2>&1 || { echo >&2 "please install qemu"; exit 1; }
go run build.go --build --app=natlabapp
qemu-img convert -O qcow2 natlabapp.img natlabapp.qcow2