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 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 5.5
parent
476237366a
commit
f2e6908dfd
+10
-1
@@ -111,7 +111,16 @@ vm_start() {
|
|||||||
< "$KEY.pub" 2> /dev/null && break
|
< "$KEY.pub" 2> /dev/null && break
|
||||||
sleep 5
|
sleep 5
|
||||||
done
|
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
|
# The VM logs in by itself; wait for its desktop session, which the
|
||||||
# scenarios run in
|
# scenarios run in
|
||||||
for i in $(seq 1 60); do
|
for i in $(seq 1 60); do
|
||||||
|
|||||||
Reference in New Issue
Block a user