We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent cab9a0a commit 7a17d6dCopy full SHA for 7a17d6d
1 file changed
core/src/tools/builtin/bash.rs
@@ -266,12 +266,13 @@ mod tests {
266
ToolContext::new(temp.path().to_path_buf()).with_command_env(std::sync::Arc::new(
267
HashMap::from([("A3S_TEST_ENV".to_string(), "visible".to_string())]),
268
));
269
+ #[cfg(windows)]
270
+ let command = "echo|set /p=%A3S_TEST_ENV%";
271
+ #[cfg(not(windows))]
272
+ let command = "printf '%s' \"$A3S_TEST_ENV\"";
273
274
let result = tool
- .execute(
- &serde_json::json!({"command": "printf '%s' \"$A3S_TEST_ENV\""}),
- &ctx,
- )
275
+ .execute(&serde_json::json!({ "command": command }), &ctx)
276
.await
277
.unwrap();
278
0 commit comments