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