summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJürg Billeter <j@bitron.ch>2020-06-02 15:15:44 +0200
committerJürg Billeter <j@bitron.ch>2020-06-03 13:49:39 +0200
commit4162e8d8c71e7125305282a67f626c2ef9de4b9c (patch)
treeeb20c34d388987671c58d5003d5122d050c7ea57
parent8655375a0fec135a4df68129f872459b89d76ba9 (diff)
downloadbuildstream-4162e8d8c71e7125305282a67f626c2ef9de4b9c.tar.gz
sandbox: Remove unused root and scratch directories
-rw-r--r--src/buildstream/sandbox/sandbox.py22
1 files changed, 0 insertions, 22 deletions
diff --git a/src/buildstream/sandbox/sandbox.py b/src/buildstream/sandbox/sandbox.py
index d82e86061..592866dac 100644
--- a/src/buildstream/sandbox/sandbox.py
+++ b/src/buildstream/sandbox/sandbox.py
@@ -138,14 +138,6 @@ class Sandbox:
self.__stdout = kwargs["stdout"]
self.__stderr = kwargs["stderr"]
- # Setup the directories. Root and output_directory should be
- # available to subclasses, hence being single-underscore. The
- # others are private to this class.
- self._root = os.path.join(directory, "root")
- self.__scratch = os.path.join(directory, "scratch")
- for directory_ in [self._root, self.__scratch]:
- os.makedirs(directory_, exist_ok=True)
-
self._output_directory = None # type: Optional[str]
self._build_directory = None
self._build_directory_always = None
@@ -462,20 +454,6 @@ class Sandbox:
def _get_work_directory(self, *, cwd=None) -> str:
return cwd or self.__cwd or "/"
- # _get_scratch_directory()
- #
- # Fetches the sandbox scratch directory, this directory can
- # be used by the sandbox implementation to cache things or
- # redirect temporary fuse mounts.
- #
- # The scratch directory is guaranteed to be on the same
- # filesystem as the root directory.
- #
- # Returns:
- # (str): The sandbox scratch directory
- def _get_scratch_directory(self):
- return self.__scratch
-
# _get_output()
#
# Fetches the stdout & stderr