fix: read the fileless audit from the shared cache

This commit is contained in:
Abdessamad Derraz committed 2026-11-21 14:59:21 +01:00
1 parent cf20111eef
commit 54bd4f2c1e
2 files changed
+4 -3

No files matched your search

+1 -1
View File
@@ -38,7 +38,7 @@ def main() -> None:
)
add_repo_inputs(parser, "emulators")
parser.add_argument(
"--cache-dir", default=".cache",
"--cache-dir", default=upstream.CACHE_DIR,
help="download cache directory (default: %(default)s)",
)
parser.add_argument(
+3 -2
View File
@@ -161,7 +161,8 @@ class TestCorpusIsAnswered(unittest.TestCase):
"""
def test_no_fileless_profile_is_left_unexplained(self):
if not (ROOT / ".cache").is_dir():
cache = ROOT / fileless.upstream.CACHE_DIR
if not cache.is_dir():
self.skipTest("no upstream cache")
from model.safeparse import yaml_load
@@ -187,7 +188,7 @@ class TestCorpusIsAnswered(unittest.TestCase):
continue
try:
hits = fileless.audit(
path.stem, str(ROOT / "emulators"), str(ROOT / ".cache"), True
path.stem, str(ROOT / "emulators"), str(cache), True
)
except fileless.upstream.NotCachedError:
# A cold branch tip is unread too, not a branch gone.