The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.
Rust agent-orchestrationai-agentsai-assistantdesktopllmlocal-firstmcppersonal-aiprivacyrustsecond-braintauri
test(cli): restrict storage url e2e workspace permissions
Steven Enamakelacfa33dbf194
diff --git a/tests/cli_storage_url_e2e.rs b/tests/cli_storage_url_e2e.rsindex 29a12796db..09d8db621e 100644--- a/tests/cli_storage_url_e2e.rs+++ b/tests/cli_storage_url_e2e.rs@@ -10,7 +10,19 @@ mod storage_case;use storage_case::UrlCase;+#[cfg(unix)]+fn make_workspace_private(workspace: &std::path::Path) {+ use std::os::unix::fs::PermissionsExt;++ std::fs::set_permissions(workspace, std::fs::Permissions::from_mode(0o700))+ .expect("make the test workspace private");+}++#[cfg(not(unix))]+fn make_workspace_private(_workspace: &std::path::Path) {}+fn core(workspace: &std::path::Path, url: Option<&str>, args: &[&str]) -> std::process::Output {+ make_workspace_private(workspace);let mut cmd = Command::new(env!("CARGO_BIN_EXE_openhuman-core"));cmd.args(args).env("HOME", workspace)