You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: hack/test-templates.sh
+6-16Lines changed: 6 additions & 16 deletions
Original file line number
Diff line number
Diff line change
@@ -336,30 +336,20 @@ if [[ -n ${CHECKS["ssh-over-vsock"]} ]]; then
336
336
if [[ "$(limactl ls "${NAME}" --yq .vmType)"=="vz" ]];then
337
337
INFO "Testing SSH over vsock"
338
338
set -x
339
-
INFO "Testing LIMA_SSH_OVER_VSOCK=true environment"
340
-
limactl stop "${NAME}"
341
-
# Detection of the SSH server on VSOCK may fail; however, a failing log indicates that controlling detection via the environment variable works as expected.
342
-
if! LIMA_SSH_OVER_VSOCK=true limactl start "${NAME}"2>&1| grep -i -E "(started vsock forwarder|Failed to detect SSH server on vsock)";then
343
-
set +x
344
-
diagnose "${NAME}"
345
-
ERROR "LIMA_SSH_OVER_VSOCK=true did not enable vsock forwarder"
346
-
exit 1
347
-
fi
348
-
INFO 'Testing LIMA_SSH_OVER_VSOCK="" environment'
339
+
INFO "Testing LIMA_SSH_OVER_VSOCK=false environment"
349
340
limactl stop "${NAME}"
350
-
# Detection of the SSH server on VSOCK may fail; however, a failing log indicates that controlling detection via the environment variable works as expected.
351
-
if! LIMA_SSH_OVER_VSOCK="" limactl start "${NAME}"2>&1| grep -i -E "(started vsock forwarder|Failed to detect SSH server on vsock)";then
341
+
if! LIMA_SSH_OVER_VSOCK=false limactl start "${NAME}"2>&1| grep -i "skipping detection of SSH server on vsock port";then
352
342
set +x
353
343
diagnose "${NAME}"
354
-
ERROR "LIMA_SSH_OVER_VSOCK= did not enable vsock forwarder"
344
+
ERROR "LIMA_SSH_OVER_VSOCK=false did not disable vsock forwarder"
355
345
exit 1
356
346
fi
357
-
INFO "Testing LIMA_SSH_OVER_VSOCK=false environment"
347
+
INFO "Testing LIMA_SSH_OVER_VSOCK=true environment"
358
348
limactl stop "${NAME}"
359
-
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 -E "(started vsock forwarder|Failed to detect SSH server on vsock)";then
360
350
set +x
361
351
diagnose "${NAME}"
362
-
ERROR "LIMA_SSH_OVER_VSOCK=false did not disable vsock forwarder"
352
+
ERROR "LIMA_SSH_OVER_VSOCK=true did not enable vsock forwarder"
0 commit comments