Loading buildstream/scriptelement.py +5 −2 Original line number Diff line number Diff line Loading @@ -202,7 +202,7 @@ class ScriptElement(Element): sandbox.set_environment(self.get_environment()) # Tell the sandbox to mount the install root directories = {'/': False} directories = {self.__install_root: False} # Mark the artifact directories in the layout for item in self.__layout: Loading @@ -211,6 +211,9 @@ class ScriptElement(Element): directories[destination] = item['element'] or was_artifact for directory, artifact in directories.items(): # Root does not need to be marked as it is always mounted # with artifact (unless explicitly marked non-artifact) if directory != '/': sandbox.mark_directory(directory, artifact=artifact) def stage(self, sandbox): Loading tests/integration/project/elements/script/corruption-2.bst 0 → 100644 +11 −0 Original line number Diff line number Diff line kind: script depends: - filename: base.bst type: build - filename: script/corruption-image.bst type: build config: commands: - echo smashed >>/canary tests/integration/project/elements/script/marked-tmpdir.bst 0 → 100644 +12 −0 Original line number Diff line number Diff line kind: compose depends: - filename: base.bst type: build public: bst: split-rules: remove: - "/tmp/**" - "/tmp" tests/integration/project/elements/script/no-tmpdir.bst 0 → 100644 +12 −0 Original line number Diff line number Diff line kind: filter depends: - filename: script/marked-tmpdir.bst type: build config: exclude: - remove include-orphans: True tests/integration/project/elements/script/tmpdir.bst 0 → 100644 +10 −0 Original line number Diff line number Diff line kind: script depends: - filename: script/no-tmpdir.bst type: build config: commands: - | mkdir -p /tmp/blah Loading
buildstream/scriptelement.py +5 −2 Original line number Diff line number Diff line Loading @@ -202,7 +202,7 @@ class ScriptElement(Element): sandbox.set_environment(self.get_environment()) # Tell the sandbox to mount the install root directories = {'/': False} directories = {self.__install_root: False} # Mark the artifact directories in the layout for item in self.__layout: Loading @@ -211,6 +211,9 @@ class ScriptElement(Element): directories[destination] = item['element'] or was_artifact for directory, artifact in directories.items(): # Root does not need to be marked as it is always mounted # with artifact (unless explicitly marked non-artifact) if directory != '/': sandbox.mark_directory(directory, artifact=artifact) def stage(self, sandbox): Loading
tests/integration/project/elements/script/corruption-2.bst 0 → 100644 +11 −0 Original line number Diff line number Diff line kind: script depends: - filename: base.bst type: build - filename: script/corruption-image.bst type: build config: commands: - echo smashed >>/canary
tests/integration/project/elements/script/marked-tmpdir.bst 0 → 100644 +12 −0 Original line number Diff line number Diff line kind: compose depends: - filename: base.bst type: build public: bst: split-rules: remove: - "/tmp/**" - "/tmp"
tests/integration/project/elements/script/no-tmpdir.bst 0 → 100644 +12 −0 Original line number Diff line number Diff line kind: filter depends: - filename: script/marked-tmpdir.bst type: build config: exclude: - remove include-orphans: True
tests/integration/project/elements/script/tmpdir.bst 0 → 100644 +10 −0 Original line number Diff line number Diff line kind: script depends: - filename: script/no-tmpdir.bst type: build config: commands: - | mkdir -p /tmp/blah