Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions hack/test-templates.sh
Original file line number Diff line number Diff line change
Expand Up @@ -338,15 +338,17 @@ if [[ -n ${CHECKS["ssh-over-vsock"]} ]]; then
set -x
INFO "Testing LIMA_SSH_OVER_VSOCK=true environment"
limactl stop "${NAME}"
if ! LIMA_SSH_OVER_VSOCK=true limactl start "${NAME}" 2>&1 | grep -i "started vsock forwarder"; then
# Detection of the SSH server on VSOCK may fail; however, a failing log indicates that controlling detection via the environment variable works as expected.
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
set +x
diagnose "${NAME}"
ERROR "LIMA_SSH_OVER_VSOCK=true did not enable vsock forwarder"
exit 1
fi
INFO 'Testing LIMA_SSH_OVER_VSOCK="" environment'
limactl stop "${NAME}"
if ! LIMA_SSH_OVER_VSOCK="" limactl start "${NAME}" 2>&1 | grep -i "started vsock forwarder"; then
# Detection of the SSH server on VSOCK may fail; however, a failing log indicates that controlling detection via the environment variable works as expected.
if ! LIMA_SSH_OVER_VSOCK="" limactl start "${NAME}" 2>&1 | grep -i -E "(started vsock forwarder|Failed to detect SSH server on vsock)"; then
set +x
diagnose "${NAME}"
ERROR "LIMA_SSH_OVER_VSOCK= did not enable vsock forwarder"
Expand Down