fix(test): stream bundled plugin sweep logs · openclaw/openclaw@fc3cd49
vincentkoc
·
2026-05-25
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -31,16 +31,18 @@ done
|
31 | 31 | |
32 | 32 | echo "Running bundled plugin install/uninstall Docker E2E..." |
33 | 33 | RUN_LOG="$(mktemp "${TMPDIR:-/tmp}/openclaw-bundled-plugin-install-uninstall.XXXXXX")" |
| 34 | +cleanup() { |
| 35 | + rm -f "$RUN_LOG" |
| 36 | +} |
| 37 | +trap cleanup EXIT |
| 38 | + |
34 | 39 | if ! docker_e2e_run_with_harness \ |
35 | 40 | "${DOCKER_ENV_ARGS[@]}" \ |
36 | 41 | "$IMAGE_NAME" \ |
37 | | - bash scripts/e2e/lib/bundled-plugin-install-uninstall/sweep.sh >"$RUN_LOG" 2>&1 |
| 42 | + bash scripts/e2e/lib/bundled-plugin-install-uninstall/sweep.sh 2>&1 | |
| 43 | + tee "$RUN_LOG" |
38 | 44 | then |
39 | | - cat "$RUN_LOG" |
40 | | - rm -f "$RUN_LOG" |
41 | 45 | exit 1 |
42 | 46 | fi |
43 | | -cat "$RUN_LOG" |
44 | | -rm -f "$RUN_LOG" |
45 | 47 | |
46 | 48 | echo "OK" |
| Original file line number | Diff line number | Diff line change |
|---|
@@ -335,6 +335,8 @@ describe("docker build helper", () => {
|
335 | 335 | expect(runner).toContain("OPENCLAW_BUNDLED_PLUGIN_SWEEP_INDEX"); |
336 | 336 | expect(runner).toContain("OPENCLAW_BUNDLED_PLUGIN_RUNTIME_READY_MS"); |
337 | 337 | expect(runner).toContain("scripts/e2e/lib/bundled-plugin-install-uninstall/sweep.sh"); |
| 338 | +expect(runner).toContain('tee "$RUN_LOG"'); |
| 339 | +expect(runner).not.toContain('cat "$RUN_LOG"'); |
338 | 340 | expect(probe).toContain('"openclaw.plugin.json"'); |
339 | 341 | expect(runtimeSmoke).toContain("process.env.OPENCLAW_BUNDLED_PLUGIN_RUNTIME_READY_MS"); |
340 | 342 | expect(runtimeSmoke).toContain("900000"); |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。