Fix c-ares tests under gcc musl
This commit is contained in:
parent
33b225616c
commit
11a45a8057
|
|
@ -36,7 +36,8 @@ if [[ "$GRPC_DNS_RESOLVER" != "" && "$GRPC_DNS_RESOLVER" != ares ]]; then
|
|||
fi
|
||||
export GRPC_DNS_RESOLVER=ares
|
||||
|
||||
"$FLAGS_dns_server_bin_path" --records_config_path="$FLAGS_records_config_path" --port="$FLAGS_dns_server_port" > /dev/null 2>&1 &
|
||||
DNS_SERVER_LOG="$(mktemp)"
|
||||
"$FLAGS_dns_server_bin_path" --records_config_path="$FLAGS_records_config_path" --port="$FLAGS_dns_server_port" > "$DNS_SERVER_LOG" 2>&1 &
|
||||
DNS_SERVER_PID=$!
|
||||
echo "Local DNS server started. PID: $DNS_SERVER_PID"
|
||||
|
||||
|
|
@ -55,8 +56,11 @@ done
|
|||
|
||||
if [[ $RETRY == 1 ]]; then
|
||||
echo "FAILED TO START LOCAL DNS SERVER"
|
||||
kill -SIGTERM "$DNS_SERVER_PID"
|
||||
kill -SIGTERM "$DNS_SERVER_PID" || true
|
||||
wait
|
||||
echo "========== DNS server log (merged stdout and stderr) ========="
|
||||
cat "$DNS_SERVER_LOG"
|
||||
echo "========== end DNS server log ================================"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
|
|
|
|||
|
|
@ -34,6 +34,7 @@
|
|||
strace ${'\\'}
|
||||
python-dev ${'\\'}
|
||||
py-pip ${'\\'}
|
||||
py-yaml ${'\\'}
|
||||
unzip ${'\\'}
|
||||
wget ${'\\'}
|
||||
zip
|
||||
|
|
|
|||
|
|
@ -36,7 +36,8 @@ if [[ "$GRPC_DNS_RESOLVER" != "" && "$GRPC_DNS_RESOLVER" != ares ]]; then
|
|||
fi
|
||||
export GRPC_DNS_RESOLVER=ares
|
||||
|
||||
"$FLAGS_dns_server_bin_path" --records_config_path="$FLAGS_records_config_path" --port="$FLAGS_dns_server_port" > /dev/null 2>&1 &
|
||||
DNS_SERVER_LOG="$(mktemp)"
|
||||
"$FLAGS_dns_server_bin_path" --records_config_path="$FLAGS_records_config_path" --port="$FLAGS_dns_server_port" > "$DNS_SERVER_LOG" 2>&1 &
|
||||
DNS_SERVER_PID=$!
|
||||
echo "Local DNS server started. PID: $DNS_SERVER_PID"
|
||||
|
||||
|
|
@ -55,8 +56,11 @@ done
|
|||
|
||||
if [[ $RETRY == 1 ]]; then
|
||||
echo "FAILED TO START LOCAL DNS SERVER"
|
||||
kill -SIGTERM "$DNS_SERVER_PID"
|
||||
kill -SIGTERM "$DNS_SERVER_PID" || true
|
||||
wait
|
||||
echo "========== DNS server log (merged stdout and stderr) ========="
|
||||
cat "$DNS_SERVER_LOG"
|
||||
echo "========== end DNS server log ================================"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
|
|
|
|||
|
|
@ -32,6 +32,7 @@ RUN apk update && apk add \
|
|||
strace \
|
||||
python-dev \
|
||||
py-pip \
|
||||
py-yaml \
|
||||
unzip \
|
||||
wget \
|
||||
zip
|
||||
|
|
|
|||
Loading…
Reference in New Issue