@@ -26,7 +26,8 @@ docker run --rm \
2626 -e " OPENCLAW_SKIP_CHANNELS=1" \
2727 -e " OPENCLAW_SKIP_GMAIL_WATCHER=1" \
2828 -e " OPENCLAW_SKIP_CANVAS_HOST=1" \
29- -e " OPENCLAW_ACPX_RUNTIME_STARTUP_PROBE=1" \
29+ -e " OPENCLAW_SKIP_ACPX_RUNTIME=1" \
30+ -e " OPENCLAW_SKIP_ACPX_RUNTIME_PROBE=1" \
3031 -e " OPENCLAW_STATE_DIR=/tmp/openclaw-state" \
3132 -e " OPENCLAW_CONFIG_PATH=/tmp/openclaw-state/openclaw.json" \
3233 -e " GW_URL=ws://127.0.0.1:$PORT " \
@@ -45,11 +46,22 @@ docker run --rm \
4546 node --import tsx scripts/e2e/cron-mcp-cleanup-seed.ts >/tmp/cron-mcp-cleanup-seed.log
4647 node \"\$ entry\" gateway --port $PORT --bind loopback --allow-unconfigured >/tmp/cron-mcp-cleanup-gateway.log 2>&1 &
4748 gateway_pid=\$ !
49+ stop_process() {
50+ pid=\"\$ 1\"
51+ kill \"\$ pid\" >/dev/null 2>&1 || true
52+ for _ in \$ (seq 1 40); do
53+ if ! kill -0 \"\$ pid\" >/dev/null 2>&1; then
54+ wait \"\$ pid\" >/dev/null 2>&1 || true
55+ return
56+ fi
57+ sleep 0.25
58+ done
59+ kill -9 \"\$ pid\" >/dev/null 2>&1 || true
60+ wait \"\$ pid\" >/dev/null 2>&1 || true
61+ }
4862 cleanup_inner() {
49- kill \"\$ mock_pid\" >/dev/null 2>&1 || true
50- kill \"\$ gateway_pid\" >/dev/null 2>&1 || true
51- wait \"\$ mock_pid\" >/dev/null 2>&1 || true
52- wait \"\$ gateway_pid\" >/dev/null 2>&1 || true
63+ stop_process \"\$ mock_pid\"
64+ stop_process \"\$ gateway_pid\"
5365 }
5466 dump_gateway_log_on_error() {
5567 status=\$ ?
@@ -84,19 +96,6 @@ docker run --rm \
8496 tail -n 120 /tmp/cron-mcp-cleanup-gateway.log 2>/dev/null || true
8597 exit 1
8698 fi
87- acpx_ready=0
88- for _ in \$ (seq 1 2400); do
89- if grep -q '\[plugins\] embedded acpx runtime backend ready' /tmp/cron-mcp-cleanup-gateway.log 2>/dev/null; then
90- acpx_ready=1
91- break
92- fi
93- sleep 0.25
94- done
95- if [ \"\$ acpx_ready\" -ne 1 ]; then
96- echo \" Embedded ACPX runtime did not become ready\"
97- tail -n 120 /tmp/cron-mcp-cleanup-gateway.log 2>/dev/null || true
98- exit 1
99- fi
10099 node --import tsx scripts/e2e/cron-mcp-cleanup-docker-client.ts
101100 " > " $CLIENT_LOG " 2>&1
102101status=${PIPESTATUS[0]}
0 commit comments