fix: keep the ci test job off the network

This commit is contained in:
Abdessamad Derraz committed 2026-10-16 10:18:53 +02:00
1 parent 3faf7dd1ee
commit 9966029cf7
4 files changed
+40 -2

No files matched your search

+4 -1
View File
@@ -173,7 +173,10 @@ def _fetch_asset(
# (gh release upload --clobber): only a download can answer, and
# it replaces the copy only if it verifies.
if offline:
# RETROBIOS_OFFLINE forbids every download whatever a caller passes: the
# CI test job sets it, since tests fetching 252 MB assets into the shared
# cache filled the runner's disk and changed what later tests resolved.
if offline or os.environ.get("RETROBIOS_OFFLINE"):
return None
os.makedirs(dest_dir, exist_ok=True)