mirror of
https://github.com/kovidgoyal/kitty.git
synced 2026-10-24 22:28:29 +00:00
Nicer test cache dir name
This commit is contained in:
parent
9f3a5bf6a8
commit
c97b71e66b
1 changed files with 4 additions and 2 deletions
|
|
@ -350,8 +350,10 @@ void vsMain() {}
|
|||
cache_base = local
|
||||
else:
|
||||
cache_base = tempfile.gettempdir()
|
||||
cache_base = os.path.join(cache_base, 'kitty-test-cache')
|
||||
os.makedirs(cache_base, exist_ok=True)
|
||||
|
||||
_CACHE_FILE = os.path.join(cache_base, 'kitty-custom-shaders-test.json')
|
||||
_CACHE_FILE = os.path.join(cache_base, 'custom-shaders-test.json')
|
||||
if not shutil.which(slangc()[0]):
|
||||
self.skipTest(f'slangc ({slangc()[0]}) not found in PATH')
|
||||
|
||||
|
|
@ -371,7 +373,7 @@ void vsMain() {}
|
|||
if entry.name.endswith('.slang') and entry.name[: -len('.slang')] not in _SUPPORT_SHADER_NAMES
|
||||
)
|
||||
|
||||
_CACHE_DIR = os.path.join(cache_base, 'kitty-custom-shaders-slangc-cache')
|
||||
_CACHE_DIR = os.path.join(cache_base, 'custom-shaders-slangc-cache')
|
||||
os.makedirs(_CACHE_DIR, exist_ok=True)
|
||||
failures: list[str] = []
|
||||
clear_caches()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue