Skip to content

The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.

feat(shell): add platform-specific shell tests

Steven Enamakel9be9b909ca7e
diff --git a/crates/openhuman-core/src/tools/impl/system/shell.rs b/crates/openhuman-core/src/tools/impl/system/shell.rs
index c12da2f80c..b718728069 100644
--- a/crates/openhuman-core/src/tools/impl/system/shell.rs
+++ b/crates/openhuman-core/src/tools/impl/system/shell.rs
@@ -1,5 +1,3 @@
-#[cfg(test)]
-use super::shell_platform::PYTHON_UTF8_DEFAULTS;
use super::shell_platform::{
command_param_description, python_utf8_env, shell_child_env, shell_description, SAFE_ENV_VARS,
};
diff --git a/crates/openhuman-core/src/tools/impl/system/shell_tests_platform_tests.rs b/crates/openhuman-core/src/tools/impl/system/shell_tests_platform_tests.rs
index d897623116..acec7f496c 100644
--- a/crates/openhuman-core/src/tools/impl/system/shell_tests_platform_tests.rs
+++ b/crates/openhuman-core/src/tools/impl/system/shell_tests_platform_tests.rs
@@ -1,8 +1,10 @@
-//! Platform-aware shell description and the child environment builder.
+//! Platform-aware shell description and the child environment builder
+//! (`shell_platform.rs`), exercised through the `shell` tool.
//!
//! Both take the platform / parent environment as a parameter so the Windows
//! behaviour is pinned on every CI host, not only on a Windows runner.
+use super::super::super::shell_platform::PYTHON_UTF8_DEFAULTS;
use super::*;
use crate::agent::platform_shell::ShellFlavor;
use std::collections::HashMap;