shell: Create cached profile directory once connected to the daemon.

* gnu/tests/base.scm (guix-daemon-test-cases)
<"containerized guix shell">
<"containerized guix shell, unprivileged user">: New tests.

Relates-to: guix/guix#126
Change-Id: I782461c80c254467108c6b8d676d269866795746
This commit is contained in:
Maxim Cournoyer 2025-11-14 11:14:00 +09:00
parent d55f448b73
commit 99b0b7aa1f
No known key found for this signature in database
GPG key ID: 1260E46482E63562

View file

@ -1168,6 +1168,21 @@ to supplementary group ~a...~%" other)
hello))
#$marionette))
;; Check that guix-daemon is up and running and that the build
;; environment is properly set up (build users, etc.).
(test-equal "containerized guix shell"
0
(marionette-eval
'(system "guix shell --no-cwd --bootstrap -C hello -- hello")
#$marionette))
(test-equal "containerized guix shell, unprivileged user"
0
(marionette-eval
'(system "su - user -c 'guix shell --bootstrap -C hello -- hello'")
#$marionette))
(test-equal "guix build hello"
0
;; Check that guix-daemon is up and running and that the build