File tree Expand file tree Collapse file tree 1 file changed +6
-14
lines changed Expand file tree Collapse file tree 1 file changed +6
-14
lines changed Original file line number Diff line number Diff line change @@ -336,28 +336,20 @@ if [[ -n ${CHECKS["ssh-over-vsock"]} ]]; then
336336 if [[ " $( limactl ls " ${NAME} " --yq .vmType) " == " vz" ]]; then
337337 INFO " Testing SSH over vsock"
338338 set -x
339- INFO " Testing LIMA_SSH_OVER_VSOCK=true environment"
340- limactl stop " ${NAME} "
341- if ! LIMA_SSH_OVER_VSOCK=true limactl start " ${NAME} " 2>&1 | grep -i " started vsock forwarder" ; then
342- set +x
343- diagnose " ${NAME} "
344- ERROR " LIMA_SSH_OVER_VSOCK=true did not enable vsock forwarder"
345- exit 1
346- fi
347- INFO ' Testing LIMA_SSH_OVER_VSOCK="" environment'
339+ INFO " Testing LIMA_SSH_OVER_VSOCK=false environment"
348340 limactl stop " ${NAME} "
349- if ! LIMA_SSH_OVER_VSOCK=" " limactl start " ${NAME} " 2>&1 | grep -i " started vsock forwarder " ; then
341+ if ! LIMA_SSH_OVER_VSOCK=false limactl start " ${NAME} " 2>&1 | grep -i " skipping detection of SSH server on vsock port " ; then
350342 set +x
351343 diagnose " ${NAME} "
352- ERROR " LIMA_SSH_OVER_VSOCK= did not enable vsock forwarder"
344+ ERROR " LIMA_SSH_OVER_VSOCK=false did not disable vsock forwarder"
353345 exit 1
354346 fi
355- INFO " Testing LIMA_SSH_OVER_VSOCK=false environment"
347+ INFO " Testing LIMA_SSH_OVER_VSOCK=true environment"
356348 limactl stop " ${NAME} "
357- if ! LIMA_SSH_OVER_VSOCK=false limactl start " ${NAME} " 2>&1 | grep -i " skipping detection of SSH server on vsock port " ; then
349+ if ! LIMA_SSH_OVER_VSOCK=true limactl start " ${NAME} " 2>&1 | grep -i " started vsock forwarder " ; then
358350 set +x
359351 diagnose " ${NAME} "
360- ERROR " LIMA_SSH_OVER_VSOCK=false did not disable vsock forwarder"
352+ ERROR " LIMA_SSH_OVER_VSOCK=true did not enable vsock forwarder"
361353 exit 1
362354 fi
363355 set +x
You can’t perform that action at this time.
0 commit comments