Keep a broken DLSS cache directory from failing the build

Scanning .horizon-cache/dlss-sdk is best-effort: a permissions error or a
missing directory now means "nothing cached" and the normal install path
runs, instead of an exception escaping before the mods fallback.

Co-Authored-By: Kimi Code <noreply@moonshot.ai>
This commit is contained in:
2026-11-21 15:43:48 +03:00
parent 84e9d6ab60
commit 97d97eb37c
2 changed files with 12 additions and 6 deletions
+5
View File
@@ -284,6 +284,11 @@ class DlssAutoInstallTests(unittest.TestCase):
self.assertTrue((root / airdef.DLSS_RUNTIME).is_file())
self.assertGreater(len(self.downloads), count)
def test_missing_cache_is_not_an_error(self):
self.assertFalse(self.dlss_cache.exists())
self.assertIsNone(airdef.cached_dlss_sdk())
self.assertIsNone(airdef.cached_vulkan_headers())
def test_vulkan_headers_land_under_capital_include(self):
root = airdef.install_vulkan_headers()
self.assertEqual(root, self.vulkan_cache / airdef.VULKAN_TAG_PINNED)