fix(e2e): bound update channel logs · openclaw/openclaw@440f315
vincentkoc
·
2026-06-07
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -61,7 +61,7 @@ node scripts/e2e/lib/update-channel-switch/assertions.mjs prepare-git-fixture "$
|
61 | 61 | ( |
62 | 62 | cd "$git_root" |
63 | 63 | if ! openclaw_e2e_maybe_timeout "${OPENCLAW_E2E_NPM_INSTALL_TIMEOUT:-600s}" npm install --omit=optional --no-fund --no-audit >/tmp/openclaw-git-install.log 2>&1; then |
64 | | - cat /tmp/openclaw-git-install.log >&2 || true |
| 64 | + openclaw_e2e_print_log /tmp/openclaw-git-install.log >&2 |
65 | 65 | exit 1 |
66 | 66 | fi |
67 | 67 | ) |
@@ -81,7 +81,7 @@ pkg_tgz_path="$package_tgz"
|
81 | 81 | |
82 | 82 | package_install_log="/tmp/openclaw-update-channel-switch-package-install.log" |
83 | 83 | if ! openclaw_e2e_maybe_timeout "${OPENCLAW_E2E_NPM_INSTALL_TIMEOUT:-600s}" npm install -g --prefix /tmp/npm-prefix --omit=optional "$pkg_tgz_path" >"$package_install_log" 2>&1; then |
84 | | - cat "$package_install_log" >&2 || true |
| 84 | + openclaw_e2e_print_log "$package_install_log" >&2 |
85 | 85 | exit 1 |
86 | 86 | fi |
87 | 87 | package_version="$(node -p "JSON.parse(require(\"node:fs\").readFileSync(\"/tmp/npm-prefix/lib/node_modules/openclaw/package.json\", \"utf8\")).version")" |
|
| Original file line number | Diff line number | Diff line change |
|---|
@@ -1478,6 +1478,10 @@ grep -qx -- "OPENCLAW_E2E_COMMAND_TIMEOUT=23s" "$TMPDIR/package-args"
|
1478 | 1478 | expect(updateChannel).toContain( |
1479 | 1479 | 'openclaw_e2e_maybe_timeout "${OPENCLAW_E2E_NPM_INSTALL_TIMEOUT:-600s}" npm install -g --prefix /tmp/npm-prefix --omit=optional "$pkg_tgz_path"', |
1480 | 1480 | ); |
| 1481 | +expect(updateChannel).toContain("openclaw_e2e_print_log /tmp/openclaw-git-install.log"); |
| 1482 | +expect(updateChannel).toContain('openclaw_e2e_print_log "$package_install_log"'); |
| 1483 | +expect(updateChannel).not.toContain("cat /tmp/openclaw-git-install.log"); |
| 1484 | +expect(updateChannel).not.toContain('cat "$package_install_log"'); |
1481 | 1485 | expect(doctorSwitch).toContain( |
1482 | 1486 | 'openclaw_e2e_maybe_timeout "${OPENCLAW_E2E_NPM_INSTALL_TIMEOUT:-600s}" npm install --omit=optional --no-fund --no-audit', |
1483 | 1487 | ); |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。