Subject: [PATCH] tests: docker-system: Use only guix-daemon service.

From: Oleg Pykhalov <[email-masked]>
Date: Sun, 6 Apr 2025 18:07:01 +0300

The test run-docker-system-test was hanging on:

(docker-cli "exec" container
             "/run/current-system/profile/bin/herd"
             "status")

This occurred because %test-docker-system specified more services than
gnu/system/examples/docker-image.tmpl, which may have caused conflicts or
unexpected behavior.

* gnu/tests/docker.scm (%test-docker-system): Simplify by using only the
guix-daemon service to prevent test hangs.

Change-Id: I2c3f7bc54fa6b5a802c8e16cba6ffae0cd09d4cc
---
 gnu/tests/docker.scm | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/gnu/tests/docker.scm b/gnu/tests/docker.scm
index 90c8d0f850..e528064c2b 100644
--- a/gnu/tests/docker.scm
+++ b/gnu/tests/docker.scm
@@ -26,6 +26,7 @@ (define-module (gnu tests docker)
   #:use-module (gnu system image)
   #:use-module (gnu system vm)
   #:use-module (gnu services)
+  #:use-module (gnu services base)
   #:use-module (gnu services dbus)
   #:use-module (gnu services networking)
   #:use-module (gnu services docker)
@@ -345,7 +346,9 @@ (define %test-docker-system
                                    (inherit (simple-operating-system))
                                    ;; Use locales for a single libc to
                                    ;; reduce space requirements.
-                                   (locale-libcs (list glibc)))
+                                   (locale-libcs (list glibc))
+                                   ;; Guix is all you need!
+                                   (services (list (service guix-service-type))))
                                  #:type docker-image-type)))
                  run-docker-system-test)))))
 
-- 
2.47.1