test(backend): skip the POSIX-only output-capture boundary test on Windows (#7013)

This commit is contained in:
xiaodu55 2026-10-17 20:53:43 +08:00 committed by GitHub
parent 86e64f2a95
commit 7e22e42365
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1,5 +1,7 @@
"""Immutable file versions and run-bound configuration evidence."""
import os
import pytest
@ -51,6 +53,7 @@ def test_artifact_versions_are_append_only_and_owner_scoped(tmp_path, monkeypatc
store.capture_artifact("alice", "workflow", "step", "report.pdf", b"overwrite")
@pytest.mark.skipif(os.name == "nt", reason="output capture is POSIX-only (dir_fd and O_NOFOLLOW)")
def test_host_output_capture_rejects_unsafe_files(tmp_path, monkeypatch):
from types import SimpleNamespace