test: make OpenWebUI smoke deterministic · openclaw/openclaw@2ecea93
steipete
·
2026-04-19
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -90,6 +90,22 @@ NODE
|
9090 node "$entry" config set --batch-file "$batch_file" >/dev/null
|
9191 rm -f "$batch_file"
|
9292|
93+ workspace="${OPENCLAW_WORKSPACE_DIR:-$HOME/.openclaw/workspace}"
|
94+ mkdir -p "$workspace/.openclaw"
|
95+ cat > "$workspace/IDENTITY.md" <<'"'"'EOF'"'"'
|
96+# Identity
|
97+|
98+- Name: OpenClaw
|
99+- Purpose: Open WebUI Docker compatibility smoke test assistant.
|
100+EOF
|
101+ cat > "$workspace/.openclaw/workspace-state.json" <<'"'"'EOF'"'"'
|
102+{
|
103+ "version": 1,
|
104+ "setupCompletedAt": "2026-01-01T00:00:00.000Z"
|
105+}
|
106+EOF
|
107+ rm -f "$workspace/BOOTSTRAP.md"
|
108+|
93109 exec node "$entry" gateway --port '"$PORT"' --bind lan --allow-unconfigured > /tmp/openwebui-gateway.log 2>&1
|
94110 ' >/dev/null
|
95111|
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。