MCPcopy Create free account
hub / github.com/NVIDIA/SOL-ExecBench / tmp_cache_dir

Function tmp_cache_dir

tests/conftest.py:77–86  ·  view source on GitHub ↗

Isolated temporary cache directory for each test. Sets SOLEXECBENCH_CACHE_PATH so every builder writes build artifacts into a fresh temp directory, preventing pollution between tests.

(tmp_path: Path, monkeypatch: pytest.MonkeyPatch)

Source from the content-addressed store, hash-verified

75
76@pytest.fixture
77def tmp_cache_dir(tmp_path: Path, monkeypatch: pytest.MonkeyPatch) -> Path:
78 """Isolated temporary cache directory for each test.
79
80 Sets SOLEXECBENCH_CACHE_PATH so every builder writes build artifacts into a
81 fresh temp directory, preventing pollution between tests.
82 """
83 cache_dir = tmp_path / "cache"
84 cache_dir.mkdir(parents=True, exist_ok=True)
85 monkeypatch.setenv("SOLEXECBENCH_CACHE_PATH", str(cache_dir))
86 return cache_dir

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected