mirror of
https://github.com/meta-llama/llama-stack.git
synced 2025-08-12 04:50:39 +00:00
test: fix recordable mocks cache key
Summary: Test Plan:
This commit is contained in:
parent
a1cdace093
commit
14afcff880
1 changed files with 3 additions and 0 deletions
|
@ -121,6 +121,9 @@ class RecordableMock:
|
||||||
# Replace temporary file paths created by tempfile.mkdtemp()
|
# Replace temporary file paths created by tempfile.mkdtemp()
|
||||||
key = re.sub(r"/var/folders/[^,'\"\s]+", "<TEMP_FILE>", key)
|
key = re.sub(r"/var/folders/[^,'\"\s]+", "<TEMP_FILE>", key)
|
||||||
|
|
||||||
|
# Replace /tmp/ paths which are also commonly used for temporary files
|
||||||
|
key = re.sub(r"/tmp/[^,'\"\s]+", "<TEMP_FILE>", key)
|
||||||
|
|
||||||
return key
|
return key
|
||||||
|
|
||||||
def _save_cache(self):
|
def _save_cache(self):
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue