Skip to content

Commit 2ecea93

Browse files
committed
test: make OpenWebUI smoke deterministic
1 parent ec193a2 commit 2ecea93

1 file changed

Lines changed: 16 additions & 0 deletions

File tree

scripts/e2e/openwebui-docker.sh

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)