From f2e6908dfd9738b7c45fe2cbb6117a88fd1255ba Mon Sep 17 00:00:00 2001 From: David Young Date: Wed, 11 Nov 2026 12:18:18 -0700 Subject: [PATCH] smoketest: show ssh's error, and hint at Local Network access "No route to host" is what macOS gives when the terminal app hasn't been allowed on the local network, which looked like the VM not starting. Co-Authored-By: Claude Opus 5.5 --- smoketest/run | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/smoketest/run b/smoketest/run index caee568..3eadfe1 100755 --- a/smoketest/run +++ b/smoketest/run @@ -111,7 +111,16 @@ vm_start() { < "$KEY.pub" 2> /dev/null && break sleep 5 done - vm_ssh true || { echo " Couldn't ssh to the VM at $IP."; return 1; } + if ! vm_ssh true 2> "$RESULTS/$name.ssh.log"; then + echo " Couldn't ssh to the VM at $IP: $(tail -n 1 "$RESULTS/$name.ssh.log")" + # macOS gives this when the app running us hasn't been allowed Local + # Network access, rather than a permission error + if grep -q 'No route to host' "$RESULTS/$name.ssh.log"; then + echo " If the VM is up, your terminal app may not be allowed on the local network:" + echo " System Settings > Privacy & Security > Local Network." + fi + return 1 + fi # The VM logs in by itself; wait for its desktop session, which the # scenarios run in for i in $(seq 1 60); do