This is an automated email from the ASF dual-hosted git repository.

juergbi pushed a commit to branch jbilleter/buildtree-shell
in repository https://gitbox.apache.org/repos/asf/buildstream.git

commit 46c29eb3fab2042608e239b0e310b01f15473f31
Author: Jürg Billeter <[email protected]>
AuthorDate: Fri Nov 14 14:10:10 2025 +0100

    tests/integration/shellbuildtrees.py: Test that filesystem is writable
---
 tests/integration/shellbuildtrees.py | 30 ++++++++++++++++++++++++++++++
 1 file changed, 30 insertions(+)

diff --git a/tests/integration/shellbuildtrees.py 
b/tests/integration/shellbuildtrees.py
index 437668ac2..a366962e5 100644
--- a/tests/integration/shellbuildtrees.py
+++ b/tests/integration/shellbuildtrees.py
@@ -339,6 +339,21 @@ def 
test_shell_pull_cached_buildtree(share_with_buildtrees, datafiles, cli, pull
     result.assert_success()
     assert "Hi" in result.output
 
+    # Check that the working directory is writable
+    result = cli.run(
+        project=project,
+        args=[
+            "shell",
+            "--build",
+            element_name,
+            "--use-buildtree",
+            "--",
+            "touch",
+            "foo",
+        ],
+    )
+    result.assert_success()
+
 
 #
 # Test behavior of shelling into a buildtree by its artifact name
@@ -372,6 +387,21 @@ def 
test_shell_pull_artifact_cached_buildtree(share_with_buildtrees, datafiles,
     result.assert_success()
     assert "Hi" in result.output
 
+    # Check that the working directory is writable
+    result = cli.run(
+        project=project,
+        args=[
+            "shell",
+            "--build",
+            "--use-buildtree",
+            artifact_name,
+            "--",
+            "touch",
+            "foo",
+        ],
+    )
+    result.assert_success()
+
 
 #
 # Test behavior of launching a shell and requesting to use a buildtree.

Reply via email to