test(e2e): tolerate early runtime deps cleanup · openclaw/openclaw@994bfc1
vincentkoc
·
2026-05-03
·
via Recent Commits to openclaw:main
File tree
scripts/e2e/lib/upgrade-survivor
| Original file line number | Diff line number | Diff line change |
|---|
@@ -337,10 +337,12 @@ function assertStateSurvived() {
|
337 | 337 | const stage = process.env.OPENCLAW_UPGRADE_SURVIVOR_ASSERT_STAGE || "survival"; |
338 | 338 | const legacyRuntimeRoot = path.join(stateDir, "plugin-runtime-deps"); |
339 | 339 | if (stage === "baseline") { |
340 | | -assert( |
341 | | -fs.existsSync(path.join(legacyRuntimeRoot, "discord")), |
342 | | -"legacy plugin runtime deps root missing before doctor cleanup", |
343 | | -); |
| 340 | +if (fs.existsSync(legacyRuntimeRoot)) { |
| 341 | +assert( |
| 342 | +fs.existsSync(path.join(legacyRuntimeRoot, "discord")), |
| 343 | +"legacy plugin runtime deps root exists but discord debris is missing before doctor cleanup", |
| 344 | +); |
| 345 | +} |
344 | 346 | } else { |
345 | 347 | assert( |
346 | 348 | !fs.existsSync(legacyRuntimeRoot), |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。