aboutsummaryrefslogtreecommitdiff
path: root/scripts/build-release
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/build-release')
-rwxr-xr-xscripts/build-release25
1 files changed, 5 insertions, 20 deletions
diff --git a/scripts/build-release b/scripts/build-release
index 0fc3693..f1cbe1e 100755
--- a/scripts/build-release
+++ b/scripts/build-release
@@ -79,28 +79,13 @@ build_iso() {
find_iso
}
-# Run sanity test in QEMU
+# Run sanity test in QEMU (automated)
sanity_test() {
- step "Sanity Test"
- info "Booting ISO in QEMU for verification..."
- info "Please verify:"
- echo " 1. System boots to login prompt"
- echo " 2. ZFS module loads (run 'zpool status' or 'lsmod | grep zfs')"
- echo " 3. Custom scripts are present (ls /usr/local/bin/)"
- echo ""
-
- # Start QEMU in background
- "$SCRIPT_DIR/test-vm.sh" &
- QEMU_PID=$!
-
- echo ""
- read -p "Press Enter once you've verified the ISO works (or Ctrl+C to abort)... "
+ step "Sanity Test (Automated)"
- # Kill QEMU if still running
- if kill -0 $QEMU_PID 2>/dev/null; then
- info "Shutting down test VM..."
- kill $QEMU_PID 2>/dev/null || true
- wait $QEMU_PID 2>/dev/null || true
+ if ! "$SCRIPT_DIR/sanity-test.sh"; then
+ error "Sanity test failed!"
+ exit 1
fi
info "Sanity test passed!"