summaryrefslogtreecommitdiffstats
path: root/build/android/pylib/utils/isolator.py
diff options
context:
space:
mode:
authorjbudorick <jbudorick@chromium.org>2015-10-01 04:29:02 -0700
committerCommit bot <commit-bot@chromium.org>2015-10-01 11:30:16 +0000
commit5cf8aa178cac4fb66627a0a104b3e064005c63f6 (patch)
tree768e0870972d2275dee2b4eb7bf6b1c45043f8c5 /build/android/pylib/utils/isolator.py
parentc7aebf55c3ec6cce942a6762018dcb5b449c0050 (diff)
downloadchromium_src-5cf8aa178cac4fb66627a0a104b3e064005c63f6.zip
chromium_src-5cf8aa178cac4fb66627a0a104b3e064005c63f6.tar.gz
chromium_src-5cf8aa178cac4fb66627a0a104b3e064005c63f6.tar.bz2
[Android] Remap isolate dependencies into a temporary directory.
BUG=537659 Review URL: https://codereview.chromium.org/1373363004 Cr-Commit-Position: refs/heads/master@{#351774}
Diffstat (limited to 'build/android/pylib/utils/isolator.py')
-rw-r--r--build/android/pylib/utils/isolator.py14
1 files changed, 7 insertions, 7 deletions
diff --git a/build/android/pylib/utils/isolator.py b/build/android/pylib/utils/isolator.py
index 20b5407..18f9eed 100644
--- a/build/android/pylib/utils/isolator.py
+++ b/build/android/pylib/utils/isolator.py
@@ -7,6 +7,7 @@ import glob
import os
import shutil
import sys
+import tempfile
from devil.utils import cmd_helper
from pylib import constants
@@ -56,13 +57,12 @@ def DefaultConfigVariables():
class Isolator(object):
"""Manages calls to isolate.py for the android test runner scripts."""
- def __init__(self, isolate_deps_dir):
- """
- Args:
- isolate_deps_dir: The directory in which dependencies specified by
- isolate are or should be stored.
- """
- self._isolate_deps_dir = isolate_deps_dir
+ def __init__(self):
+ self._isolate_deps_dir = tempfile.mkdtemp()
+
+ @property
+ def isolate_deps_dir(self):
+ return self._isolate_deps_dir
def Clear(self):
"""Deletes the isolate dependency directory."""