summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJim MacArthur <jim.macarthur@codethink.co.uk>2018-07-03 17:55:54 +0100
committerJim MacArthur <jim.macarthur@codethink.co.uk>2018-07-04 12:40:37 +0100
commit905cae9c894890d0486bc371fc35e0c857bd6ae2 (patch)
tree77ca67c778262a23ec5127a31b60a29dff796eb5
parent631c60bc6a4fff4eda161ef079451150eaff9cb7 (diff)
downloadbuildstream-905cae9c894890d0486bc371fc35e0c857bd6ae2.tar.gz
sandbox.py: Allow setting the virtual directory (for use after remote execution has finished)
-rw-r--r--buildstream/sandbox/sandbox.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/buildstream/sandbox/sandbox.py b/buildstream/sandbox/sandbox.py
index a4db511b5..c81b991fc 100644
--- a/buildstream/sandbox/sandbox.py
+++ b/buildstream/sandbox/sandbox.py
@@ -145,6 +145,12 @@ class Sandbox():
else:
self.__vdir = CasBasedDirectory(self.__context, ref=None)
return self.__vdir
+
+ def set_virtual_directory(self, vdir):
+ """ Sets virtual directory. Useful after remote execution
+ has rewritten the working directory. """
+ self.__vdir = vdir
+
def get_temporary_vdir(self):
return CasBasedDirectory(self.__context, ref=None)