Skip to content

Commit 7a3c2aa

Browse files
committed
add resolv info
1 parent 3cfa652 commit 7a3c2aa

1 file changed

Lines changed: 11 additions & 0 deletions

File tree

test/plugins/runner-helper/templates/wsl-scenarios.tpl

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,18 @@
1919
set -ex
2020
cp -rf /mnt/d/a/skywalking-go/skywalking-go/test/plugins/workspace /root/repo/skywalking-go/test/plugins/
2121
cd {{.Context.WorkSpaceDir}}
22+
echo "[DEBUG] WSL network debug:"
23+
echo "[DEBUG] - /etc/resolv.conf content:"
24+
cat /etc/resolv.conf
25+
echo "[DEBUG] - WSL version:"
26+
cat /proc/version
27+
echo "[DEBUG] - Network interfaces:"
28+
ip addr show || ifconfig
29+
echo "[DEBUG] - Route table:"
30+
ip route || route -n
31+
2232
export WINDOWS_HOST=`cat /etc/resolv.conf | grep nameserver | cut -d ' ' -f 2`
33+
echo "[DEBUG] WSL detected Windows host IP: $WINDOWS_HOST"
2334

2435
# Keep validator.sh using Windows host IP for healthcheck
2536
sed -i "s/HTTP_HOST=127\.0\.0\.1/HTTP_HOST=$WINDOWS_HOST/g" validator.sh

0 commit comments

Comments
 (0)