docs(testing): document openshell e2e prerequisites · openclaw/openclaw@9d381d4
vincentkoc
·
2026-06-24
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -740,17 +740,20 @@ Native dependency policy:
|
740 | 740 | - Command: `pnpm test:e2e:openshell` |
741 | 741 | - File: `extensions/openshell/src/backend.e2e.test.ts` |
742 | 742 | - Scope: |
743 | | - - Starts an isolated OpenShell gateway on the host via Docker |
| 743 | + - Reuses an active local OpenShell gateway |
744 | 744 | - Creates a sandbox from a temporary local Dockerfile |
745 | 745 | - Exercises OpenClaw's OpenShell backend over real `sandbox ssh-config` + SSH exec |
746 | 746 | - Verifies remote-canonical filesystem behavior through the sandbox fs bridge |
747 | 747 | - Expectations: |
748 | 748 | - Opt-in only; not part of the default `pnpm test:e2e` run |
749 | 749 | - Requires a local `openshell` CLI plus a working Docker daemon |
750 | | - - Uses isolated `HOME` / `XDG_CONFIG_HOME`, then destroys the test gateway and sandbox |
| 750 | + - Requires an active local OpenShell gateway and its config source |
| 751 | + - Uses isolated `HOME` / `XDG_CONFIG_HOME`, then destroys the test sandbox |
751 | 752 | - Useful overrides: |
752 | 753 | - `OPENCLAW_E2E_OPENSHELL=1` to enable the test when running the broader e2e suite manually |
753 | 754 | - `OPENCLAW_E2E_OPENSHELL_COMMAND=/path/to/openshell` to point at a non-default CLI binary or wrapper script |
| 755 | + - `OPENCLAW_E2E_OPENSHELL_CONFIG_HOME=/path/to/config` to expose the registered gateway config to the isolated test |
| 756 | + - `OPENCLAW_E2E_OPENSHELL_HOST_IP=172.18.0.1` to override the Docker gateway IP used by the host policy fixture |
754 | 757 | |
755 | 758 | ### Live (real providers + real models) |
756 | 759 | |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。