diff --git a/tests/test_preview_execution_evidence.py b/tests/test_preview_execution_evidence.py index 40bfc3253..21b4f8d4b 100644 --- a/tests/test_preview_execution_evidence.py +++ b/tests/test_preview_execution_evidence.py @@ -1,5 +1,6 @@ """Execution outcomes must reach the model, not just the tool-event UI.""" import json +import os import pytest @@ -7,6 +8,7 @@ from src.agent_tools.subprocess_tools import BashTool from src.clean_agent_preview import preview_tool_result_text +@pytest.mark.skipif(os.name == "nt", reason="POSIX-only: enforcing containment (bubblewrap/process group) needed to run native bash; Windows windows_tree gives wall-clock only") @pytest.mark.asyncio async def test_failed_shell_retains_exit_status_and_both_streams_for_followup(tmp_path): from tests.process_resource_helpers import launch_authority diff --git a/tests/test_production_external_bridge.py b/tests/test_production_external_bridge.py index 8f365543a..defac25f3 100644 --- a/tests/test_production_external_bridge.py +++ b/tests/test_production_external_bridge.py @@ -3,6 +3,7 @@ P2-2 invariant: external bridge execution != local containment. """ import asyncio +import os from types import SimpleNamespace from unittest.mock import patch @@ -180,6 +181,7 @@ async def test_external_record_does_not_grant_authority(tmp_path): await containment.run(grant, "id") +@pytest.mark.skipif(os.name == "nt", reason="POSIX-only: enforcing containment (bubblewrap/process group) needed to run native bash; Windows windows_tree gives wall-clock only") @pytest.mark.asyncio async def test_native_local_bash_python_behavior_unchanged(tmp_path, monkeypatch): """4. Native local Bash/Python behavior is unchanged."""