From 905cae9c894890d0486bc371fc35e0c857bd6ae2 Mon Sep 17 00:00:00 2001 From: Jim MacArthur Date: Tue, 3 Jul 2018 17:55:54 +0100 Subject: sandbox.py: Allow setting the virtual directory (for use after remote execution has finished) --- buildstream/sandbox/sandbox.py | 6 ++++++ 1 file changed, 6 insertions(+) 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) -- cgit v1.2.1