mirror of
https://github.com/openclaw/openclaw.git
synced 2026-06-06 05:51:15 +08:00
test(e2e): repair release docker smoke fixtures
Co-authored-by: Vincent Koc <25068+vincentkoc@users.noreply.github.com> Co-authored-by: jesse-merhi <79823012+jesse-merhi@users.noreply.github.com>
This commit is contained in:
@@ -23,6 +23,7 @@ run_logged agents-delete-shared-workspace docker_e2e_docker_cmd run --rm \
|
||||
-e OPENCLAW_SKIP_BROWSER_CONTROL_SERVER=1 \
|
||||
-e OPENCLAW_SKIP_ACPX_RUNTIME=1 \
|
||||
-e OPENCLAW_SKIP_ACPX_RUNTIME_PROBE=1 \
|
||||
-e OPENCLAW_GATEWAY_TOKEN=agents-delete-shared-workspace-token \
|
||||
-e "OPENCLAW_TEST_STATE_SCRIPT_B64=$OPENCLAW_TEST_STATE_SCRIPT_B64" \
|
||||
"$IMAGE_NAME" \
|
||||
-lc '
|
||||
|
||||
@@ -19,6 +19,7 @@ function writeOpenWebUiWorkspace() {
|
||||
function writeAgentsDeleteConfig() {
|
||||
const stateDir = requireArg(process.env.OPENCLAW_STATE_DIR, "OPENCLAW_STATE_DIR");
|
||||
const sharedWorkspace = requireArg(process.env.SHARED_WORKSPACE, "SHARED_WORKSPACE");
|
||||
const gatewayToken = process.env.OPENCLAW_GATEWAY_TOKEN?.trim();
|
||||
fs.mkdirSync(sharedWorkspace, { recursive: true });
|
||||
writeJson(path.join(stateDir, "openclaw.json"), {
|
||||
agents: {
|
||||
@@ -27,6 +28,7 @@ function writeAgentsDeleteConfig() {
|
||||
{ id: "ops", workspace: sharedWorkspace },
|
||||
],
|
||||
},
|
||||
...(gatewayToken ? { gateway: { auth: { mode: "token", token: gatewayToken } } } : {}),
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
@@ -59,7 +59,7 @@ if ! docker_e2e_run_with_harness \
|
||||
-e "OPENCLAW_TEST_STATE_SCRIPT_B64=$OPENCLAW_TEST_STATE_SCRIPT_B64" \
|
||||
"${DOCKER_E2E_PACKAGE_ARGS[@]}" \
|
||||
-i "$IMAGE_NAME" bash -s >"$run_log" 2>&1 <<'EOF'; then
|
||||
set -euo pipefail
|
||||
set -Eeuo pipefail
|
||||
|
||||
source scripts/lib/openclaw-e2e-instance.sh
|
||||
openclaw_e2e_eval_test_state_from_b64 "${OPENCLAW_TEST_STATE_SCRIPT_B64:?missing OPENCLAW_TEST_STATE_SCRIPT_B64}"
|
||||
|
||||
Reference in New Issue
Block a user