From 32f9c76aa2b2aaf3c40b5181e62b3050a8a3b066 Mon Sep 17 00:00:00 2001 From: Harry Harpham Date: Tue, 31 Mar 2026 09:22:54 -0600 Subject: [PATCH] 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 --- gokrazy/Makefile | 1 + 1 file changed, 1 insertion(+) diff --git a/gokrazy/Makefile b/gokrazy/Makefile index bc55f2a52..eeb63e195 100644 --- a/gokrazy/Makefile +++ b/gokrazy/Makefile @@ -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