Skip to content

Commit 3d6754e

Browse files
committed
hack/test-templates.sh: Print routing table before executing test-port-forwarding.pl
Signed-off-by: Norio Nomura <[email protected]>
1 parent bcc8202 commit 3d6754e

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
@@ -435,6 +435,13 @@ if [[ -n ${CHECKS["port-forwards"]} ]]; then
435435
if limactl shell "${NAME}" command -v dnf; then
436436
limactl shell "${NAME}" sudo dnf install -y nc socat
437437
fi
438+
# print routing table for debugging
439+
case "${OS_HOST}" in
440+
"Darwin") netstat -rn ;;
441+
"GNU/Linux") ip route show ;;
442+
"Msys") route print ;;
443+
*) ;;
444+
esac
438445
if "${scriptdir}/test-port-forwarding.pl" "${NAME}" socat $PORT_FORWARDING_CONNECTION_TIMEOUT; then
439446
INFO "Port forwarding rules work"
440447
else

0 commit comments

Comments
 (0)