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(
214
214
}
215
215
commandWithPaths.addAll (paths);
216
216
217
+ final workingDir = fileSystem.directory (projectRoot.path);
218
+ await workingDir.create (recursive: true );
219
+
217
220
final result = await processManager.run (
218
221
commandWithPaths,
219
- workingDirectory: projectRoot .path,
222
+ workingDirectory: workingDir .path,
220
223
runInShell: true ,
221
224
);
222
225
Original file line number Diff line number Diff line change @@ -56,6 +56,7 @@ void main() {
56
56
test (
57
57
'can run commands with roots that are subdirectories of known roots' ,
58
58
() async {
59
+ expect (fileSystem.directory ('/bar/baz' ).existsSync (), false );
59
60
final result = await runCommandInRoots (
60
61
CallToolRequest (
61
62
name: 'foo' ,
@@ -79,6 +80,7 @@ void main() {
79
80
workingDirectory: '/bar/baz/' ,
80
81
)),
81
82
]);
83
+ expect (fileSystem.directory ('/bar/baz' ).existsSync (), true );
82
84
},
83
85
);
84
86
});
You can’t perform that action at this time.
0 commit comments