File tree Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -214,9 +214,12 @@ Future<CallToolResult> runCommandInRoot(
214214 }
215215 commandWithPaths.addAll(paths);
216216
217+ final workingDir = fileSystem.directory(projectRoot.path);
218+ await workingDir.create(recursive: true);
219+
217220 final result = await processManager.run(
218221 commandWithPaths,
219- workingDirectory: projectRoot .path,
222+ workingDirectory: workingDir .path,
220223 runInShell: true,
221224 );
222225
Original file line number Diff line number Diff line change @@ -56,6 +56,7 @@ void main() {
5656 test(
5757 'can run commands with roots that are subdirectories of known roots',
5858 () async {
59+ expect(fileSystem.directory('/bar/baz').existsSync(), false);
5960 final result = await runCommandInRoots(
6061 CallToolRequest(
6162 name: 'foo',
@@ -79,6 +80,7 @@ void main() {
7980 workingDirectory: '/bar/baz/',
8081 )),
8182 ]);
83+ expect(fileSystem.directory('/bar/baz').existsSync(), true);
8284 },
8385 );
8486 });
You can’t perform that action at this time.
0 commit comments