mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-09 15:04:33 +00:00
fix(sandbox): parse Windows bind mounts in fs-path mapping
This commit is contained in:
@@ -25,6 +25,19 @@ describe("parseSandboxBindMount", () => {
|
||||
writable: true,
|
||||
});
|
||||
});
|
||||
|
||||
it("parses Windows drive-letter host paths", () => {
|
||||
expect(parseSandboxBindMount("C:\\Users\\kai\\workspace:/workspace:ro")).toEqual({
|
||||
hostRoot: path.resolve("C:\\Users\\kai\\workspace"),
|
||||
containerRoot: "/workspace",
|
||||
writable: false,
|
||||
});
|
||||
expect(parseSandboxBindMount("D:/data:/workspace-data:rw")).toEqual({
|
||||
hostRoot: path.resolve("D:/data"),
|
||||
containerRoot: "/workspace-data",
|
||||
writable: true,
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
describe("resolveSandboxFsPathWithMounts", () => {
|
||||
|
||||
Reference in New Issue
Block a user