fix(e2e): keep live plugin pack paths local · openclaw/openclaw@66fde5a
vincentkoc
·
2026-06-17
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -2136,6 +2136,18 @@ grep -Fxq preserved "$TMPDIR/caller-fd"
|
2136 | 2136 | expect(runner.slice(dumpLogsStart, dumpLogsEnd)).not.toContain("/tmp/openclaw-agent.json"); |
2137 | 2137 | }); |
2138 | 2138 | |
| 2139 | +it("keeps live plugin tool npm pack tarball paths inside the fixture directory", () => { |
| 2140 | +const runner = readFileSync(LIVE_PLUGIN_TOOL_DOCKER_E2E_PATH, "utf8"); |
| 2141 | + |
| 2142 | +expect(runner).toContain('npm pack --pack-destination "$fixture_dir" --silent'); |
| 2143 | +expect(runner).toContain("/tmp/openclaw-live-plugin-tool-pack.log"); |
| 2144 | +expect(runner).toContain("find \"$fixture_dir\" -maxdepth 1 -type f -name '*.tgz' | sort"); |
| 2145 | +expect(runner).toContain("Expected one packed fixture plugin tarball"); |
| 2146 | +expect(runner).toContain("openclaw_e2e_dump_logs /tmp/openclaw-live-plugin-tool-pack.log"); |
| 2147 | +expect(runner).toContain('plugin_tgz="${plugin_tgzs[0]}"'); |
| 2148 | +expect(runner).not.toContain('plugin_tgz="$fixture_dir/$plugin_pack"'); |
| 2149 | +}); |
| 2150 | + |
2139 | 2151 | it("cleans every prepared Docker package tarball on every runner exit path", () => { |
2140 | 2152 | const paths = packageBackedDockerRunnerPaths(); |
2141 | 2153 | |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。