Commit 4f04e714 authored by Jürg Billeter's avatar Jürg Billeter

sandbox.py: Add _set_build_directory() method

This will enable SandboxRemote to download the file blobs of the build
directory only when needed.
parent 18f3a8ad
......@@ -147,6 +147,8 @@ class Sandbox():
os.makedirs(directory_, exist_ok=True)
self._output_directory = None
self._build_directory = None
self._build_directory_always = None
self._vdir = None
self._usebuildtree = False
......@@ -592,6 +594,20 @@ class Sandbox():
def _disable_run(self):
self.__allow_run = False
# _set_build_directory()
#
# Sets the build directory - the directory which may be preserved as
# buildtree in the artifact.
#
# Args:
# directory (str): An absolute path within the sandbox
# always (bool): True if the build directory should always be downloaded,
# False if it should be downloaded only on failure
#
def _set_build_directory(self, directory, *, always):
self._build_directory = directory
self._build_directory_always = always
# _SandboxBatch()
#
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment