Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions tests/integration/cross_repo/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,8 @@ def omni_home() -> Path:
convention path only when derivation succeeds unambiguously — i.e. the
derived candidate contains an ``omniclaude`` subdirectory.

Raises RuntimeError with a clear message if neither strategy resolves.
Calls pytest.skip() with a clear message if neither strategy resolves,
so tests that depend on this fixture are skipped rather than erroring in CI.
"""
env_path = os.environ.get("OMNI_HOME")
if env_path:
Expand All @@ -55,10 +56,9 @@ def omni_home() -> Path:
if (candidate / "omniclaude").exists():
return candidate

msg = (
pytest.skip(
"Cannot locate omni_home. Set the OMNI_HOME environment variable "
"to the absolute path of the omni_home registry directory. "
f"Attempted derivation resolved to '{candidate}' but no 'omniclaude' "
"subdirectory was found there."
)
raise RuntimeError(msg)
Loading