Skip to content

Commit 6d6bbc3

Browse files
committed
fix(add some DNS log for wsl-scenarios)
1 parent f6725df commit 6d6bbc3

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

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

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,15 @@ export WINDOWS_HOST=`cat /etc/resolv.conf | grep nameserver | cut -d ' ' -f 2`
2323
sed -i "s/service:8080/$WINDOWS_HOST:8080/g" ./config/excepted.yml
2424
sed -i "s/HTTP_HOST=127\.0\.0\.1/HTTP_HOST=$WINDOWS_HOST/g" validator.sh
2525

26+
# Diagnostics for host resolution/connectivity
27+
echo "[wsl] WINDOWS_HOST=$WINDOWS_HOST"
28+
echo "[wsl] resolv.conf:" && cat /etc/resolv.conf || true
29+
echo "[wsl] getent hosts for WINDOWS_HOST:" && getent hosts "$WINDOWS_HOST" || true
30+
echo "[wsl] getent hosts for host.docker.internal:" && getent hosts host.docker.internal || true
31+
32+
# Enable verbose validator healthcheck diagnostics
33+
sed -i '1i export DEBUG_HEALTHCHECK=1' validator.sh
34+
2635
compose_version=$(docker-compose version --short)
2736

2837
if [[ $compose_version =~ ^(v)?1 ]]; then

0 commit comments

Comments
 (0)