Skip to content

Commit dbe02f0

Browse files
committed
hack/test-templates.sh: Print routing table before executing test-port-forwarding.pl
Signed-off-by: Norio Nomura <norio.nomura@gmail.com>
1 parent 83293f4 commit dbe02f0

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

hack/test-templates.sh

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -446,6 +446,13 @@ if [[ -n ${CHECKS["port-forwards"]} ]]; then
446446
if limactl shell "${NAME}" command -v dnf; then
447447
limactl shell "${NAME}" sudo dnf install -y nc socat
448448
fi
449+
# print routing table for debugging
450+
case "${OS_HOST}" in
451+
"Darwin") netstat -rn ;;
452+
"GNU/Linux") ip route show ;;
453+
"Msys") route print ;;
454+
*) ;;
455+
esac
449456
if "${scriptdir}/test-port-forwarding.pl" "${NAME}" socat $PORT_FORWARDING_CONNECTION_TIMEOUT; then
450457
INFO "Port forwarding rules work"
451458
else

0 commit comments

Comments
 (0)