mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-06 09:10:45 +00:00
test: fix onboard Docker test state setup
This commit is contained in:
@@ -9,6 +9,7 @@ import { describe, expect, it } from "vitest";
|
||||
const execFileAsync = promisify(execFile);
|
||||
const repoRoot = path.resolve(path.dirname(fileURLToPath(import.meta.url)), "../..");
|
||||
const scriptPath = path.join(repoRoot, "scripts/lib/openclaw-test-state.mjs");
|
||||
const onboardDockerScriptPath = path.join(repoRoot, "scripts/e2e/onboard-docker.sh");
|
||||
|
||||
function shellQuote(value: string): string {
|
||||
return `'${value.replace(/'/gu, `'\\''`)}'`;
|
||||
@@ -142,4 +143,13 @@ describe("scripts/lib/openclaw-test-state", () => {
|
||||
await fs.rm(tempRoot, { recursive: true, force: true });
|
||||
}
|
||||
});
|
||||
|
||||
it("keeps onboard Docker temp homes on the shared test-state helper", async () => {
|
||||
const scriptText = await fs.readFile(onboardDockerScriptPath, "utf8");
|
||||
|
||||
expect(scriptText).toContain("OPENCLAW_TEST_STATE_FUNCTION_B64");
|
||||
expect(scriptText).toContain("set_isolated_openclaw_env local-basic");
|
||||
expect(scriptText).toContain("run_wizard_cmd channels channels");
|
||||
expect(scriptText).not.toContain("make_home");
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user