mirror of
https://github.com/zama-ai/concrete.git
synced 2026-04-17 03:00:54 -04:00
chore: set key cache directory from the environment for make pytest command
This commit is contained in:
@@ -29,7 +29,8 @@ pytest:
|
||||
pytest tests -svv -n auto \
|
||||
--cov=concrete \
|
||||
--cov-fail-under=100 \
|
||||
--cov-report=term-missing:skip-covered
|
||||
--cov-report=term-missing:skip-covered \
|
||||
--key-cache "${KEY_CACHE_DIRECTORY}"
|
||||
|
||||
# ==========
|
||||
# Formatting
|
||||
|
||||
@@ -50,7 +50,7 @@ def pytest_sessionstart(session):
|
||||
# pylint: enable=global-statement
|
||||
|
||||
key_cache_location = session.config.getoption("--key-cache", default=None)
|
||||
if key_cache_location is not None:
|
||||
if key_cache_location is not None and key_cache_location != "":
|
||||
if key_cache_location.lower() == "disable":
|
||||
key_cache_location = None
|
||||
else:
|
||||
|
||||
Reference in New Issue
Block a user