Use PowerShell directly in Windows sandbox test

This commit is contained in:
Abhinav Vedmala
2026-06-08 17:57:17 -07:00
parent e834cca093
commit d3138cb94d
+2 -1
View File
@@ -403,7 +403,8 @@ async fn windows_unified_exec_managed_network_enforces_deny_read() -> anyhow::Re
let call_id = "windows-unified-exec-managed-network-deny-read";
let command = format!(
r#"cmd.exe /D /C "(type "{}" 1>NUL 2>NUL && echo SECRET-READ || echo SECRET-DENIED) & type "{}""#,
"if (Get-Content -LiteralPath '{}' -ErrorAction SilentlyContinue) {{ \
'SECRET-READ' }} else {{ 'SECRET-DENIED' }}; Get-Content -LiteralPath '{}'",
secret_path.display(),
public_path.display()
);