diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/buildstream/sandbox/_sandboxremote.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/buildstream/sandbox/_sandboxremote.py b/src/buildstream/sandbox/_sandboxremote.py index 77bb34fa9..bc292cf60 100644 --- a/src/buildstream/sandbox/_sandboxremote.py +++ b/src/buildstream/sandbox/_sandboxremote.py @@ -338,6 +338,11 @@ class SandboxRemote(Sandbox): # set up virtual dircetory upload_vdir = self.get_virtual_directory() + # Ensure working directory exists + if len(cwd) > 1: + assert cwd.startswith('/') + upload_vdir.descend(*cwd[1:].split(os.path.sep), create=True) + # Create directories for all marked directories. This emulates # some of the behaviour of other sandboxes, which create these # to use as mount points. |