From 5cf8aa178cac4fb66627a0a104b3e064005c63f6 Mon Sep 17 00:00:00 2001 From: jbudorick Date: Thu, 1 Oct 2015 04:29:02 -0700 Subject: [Android] Remap isolate dependencies into a temporary directory. BUG=537659 Review URL: https://codereview.chromium.org/1373363004 Cr-Commit-Position: refs/heads/master@{#351774} --- build/android/pylib/utils/isolator.py | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'build/android/pylib/utils/isolator.py') 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.""" -- cgit v1.1