| Index: client/tests/run_isolated_test.py
|
| diff --git a/client/tests/run_isolated_test.py b/client/tests/run_isolated_test.py
|
| index 4809992ca42bffd58756412685ee9c399be9da74..a48894411379741e0f0cc17c41e9e1cc1579962d 100755
|
| --- a/client/tests/run_isolated_test.py
|
| +++ b/client/tests/run_isolated_test.py
|
| @@ -7,6 +7,7 @@
|
|
|
| import StringIO
|
| import base64
|
| +import contextlib
|
| import functools
|
| import json
|
| import logging
|
| @@ -47,6 +48,11 @@ def json_dumps(data):
|
| return json.dumps(data, sort_keys=True, separators=(',', ':'))
|
|
|
|
|
| +@contextlib.contextmanager
|
| +def init_named_caches_stub(_run_dir):
|
| + yield
|
| +
|
| +
|
| class StorageFake(object):
|
| def __init__(self, files):
|
| self._files = files.copy()
|
| @@ -217,7 +223,7 @@ class RunIsolatedTest(RunIsolatedTestBase):
|
| StorageFake(files),
|
| isolateserver.MemoryCache(),
|
| None,
|
| - lambda run_dir: None,
|
| + init_named_caches_stub,
|
| False,
|
| None,
|
| None,
|
| @@ -587,7 +593,7 @@ class RunIsolatedTestRun(RunIsolatedTestBase):
|
| store,
|
| isolateserver.MemoryCache(),
|
| None,
|
| - lambda run_dir: None,
|
| + init_named_caches_stub,
|
| False,
|
| None,
|
| None,
|
| @@ -673,7 +679,7 @@ class RunIsolatedTestOutputFiles(RunIsolatedTestBase):
|
| store,
|
| isolateserver.MemoryCache(),
|
| ['foo', 'foodir/foo2'],
|
| - lambda run_dir: None,
|
| + init_named_caches_stub,
|
| False,
|
| None,
|
| None,
|
|
|