fix(tests): select launchd restart tests on macOS

This commit is contained in:
KoNit-K
2026-09-15 20:03:43 +08:00
committed by Teknium
parent 6c05cbf4bd
commit 8624e632fd
2 changed files with 15 additions and 4 deletions
+8
View File
@@ -134,3 +134,11 @@ def test_real_tree_selects_files_for_every_marker():
assert listed, f"{marker} selected no files"
for rel in listed:
assert (REPO_ROOT / rel).is_file(), f"{marker} listed missing {rel}"
def test_macos_marker_selects_launchd_fleet_restart_coverage():
"""The macOS lane must import the launchd-specific update regression."""
result = _run("macos_only")
assert result.returncode == 0, result.stderr
assert "tests/hermes_cli/test_update_launchd_fleet_restart.py" in result.stdout.split()
@@ -39,10 +39,13 @@ from hermes_cli.update_cmd import (
)
pytestmark = pytest.mark.skipif(
sys.platform == "win32",
reason="launchd fleet restart is macOS-only; helpers use POSIX os.getuid",
)
pytestmark = [
pytest.mark.macos_only,
pytest.mark.skipif(
sys.platform == "win32",
reason="launchd fleet restart is macOS-only; helpers use POSIX os.getuid",
),
]
UID = 501