Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(188)

Unified Diff: client/tests/run_isolated_test.py

Issue 2663023004: swarming: delete named cache symlinks before workdir (Closed)
Patch Set: pylint Created 3 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « client/run_isolated.py ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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,
« no previous file with comments | « client/run_isolated.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698