Test task shell commands (#38706)

Add tests on task commands, to ensure things like
https://github.com/zed-industries/zed/issues/38343 do not come so easily
unnoticed and to provide a base to create more tests in the future, if
needed.

Release Notes:

- N/A

---------

Co-authored-by: Lukas Wirth <lukas@zed.dev>
This commit is contained in:
Kirill Bulatov
2025-09-23 11:12:39 +00:00
committed by GitHub
co-authored by Lukas Wirth
parent edb804de5a
commit d8048f46ee
8 changed files with 181 additions and 44 deletions
+1 -1
View File
@@ -1026,7 +1026,7 @@ impl RunningState {
};
let builder = ShellBuilder::new(remote_shell.as_deref(), &task.resolved.shell);
let command_label = builder.command_label(&task.resolved.command_label);
let command_label = builder.command_label(task.resolved.command.as_deref().unwrap_or(""));
let (command, args) =
builder.build(task.resolved.command.clone(), &task.resolved.args);