1
0
mirror of https://git.savannah.gnu.org/git/guix.git synced 2026-04-06 21:20:33 +02:00

tests: %test-nss-mdns: Fix test order.

Before this, the test failed because Avahi CLI utilities
exit with a non-zero status in case of a cache miss
(instead of blocking?).

* gnu/tests/avahi.scm (run-nss-mdns-test): Move the Avahi CLI tests
  after other name resolution tests.

Change-Id: I88ab03abf39cf24ee2ce763c719444ac65504cc2
Signed-off-by: Ludovic Courtès <ludo@gnu.org>
Merges: #4955
This commit is contained in:
Nguyễn Gia Phong
2025-12-19 10:13:50 +09:00
committed by Ludovic Courtès
parent d7ad785c6d
commit 211ee32c95

View File

@@ -132,20 +132,6 @@
(start-service 'networking))
marionette))
(test-equal "avahi-resolve-host-name"
0
(marionette-eval
'(system*
"/run/current-system/profile/bin/avahi-resolve-host-name"
"-v" #$mdns-host-name)
marionette))
(test-equal "avahi-browse"
0
(marionette-eval
'(system* "/run/current-system/profile/bin/avahi-browse" "-avt")
marionette))
(test-assert "getaddrinfo .local"
;; Wait for the 'avahi-daemon' service and perform a resolution.
(match (marionette-eval
@@ -168,6 +154,19 @@
(and (string=? (hostent:name result) #$mdns-host-name)
(= (hostent:addrtype result) AF_INET)))))
(test-equal "avahi-resolve host name"
0
(marionette-eval
'(system* "/run/current-system/profile/bin/avahi-resolve"
"--verbose" "--name" #$mdns-host-name)
marionette))
(test-equal "avahi-browse"
0
(marionette-eval
'(system* "/run/current-system/profile/bin/avahi-browse"
"--all" "--verbose" "--terminate")
marionette))
(test-end))))