summary refs log tree commit diff
diff options
context:
space:
mode:
authorPicnoir <picnoir@alternativebit.fr>2024-06-04 14:06:56 +0200
committerChristopher Baines <mail@cbaines.net>2024-06-10 11:07:55 +0100
commit7b0970fb4386726519204b74230b563ad060741b (patch)
treeae66a0df89bbd155ea18eb59cce23e1dc50cb9a9
parentf63e6a17a1c9fb94e6b321c2b35db649c5176457 (diff)
downloadguix-7b0970fb4386726519204b74230b563ad060741b.tar.gz
gnu: rust-dns-lookup-2: Fix package tests.
This package was introduced in abfef465b2b2353610cbff2caefee679566978f7 as a
dependency for Nsncd. We can build Nsncd just fine, but building explicitly
this package is failing. The issue comes from two tests making assumption
about domain name resolution. The Guix build sandbox breaks these assumptions,
preventing the test suite to succeed. Fixing this by disabling the faulty
tests.

* gnu/packages/crates-io.scm (rust-dns-lookup-2): Skip faulty tests.

Change-Id: Idc42822d8cd72e83e9ea973820b5073ff87ad4d4
Signed-off-by: Christopher Baines <mail@cbaines.net>
-rw-r--r--gnu/packages/crates-io.scm7
1 files changed, 6 insertions, 1 deletions
diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index 70b70fe395..9fbe0e2a6a 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -19955,7 +19955,12 @@ not support network, only raw protocol parser.")
         (base32 "1z74n2zij2gahycabm0gkmkyx574h76gwk7sz93yqpr3qa3n0xp5"))))
     (build-system cargo-build-system)
     (arguments
-     `(#:cargo-inputs (("rust-cfg-if" ,rust-cfg-if-1)
+     `(#:cargo-test-flags
+       '("--"
+         ;; the builder sandbox breaks getaddrinfo, failing two tests.
+         "--skip=nameinfo::test_getnameinfo"
+         "--skip=src/lib.rs")
+       #:cargo-inputs (("rust-cfg-if" ,rust-cfg-if-1)
                        ("rust-libc" ,rust-libc-0.2)
                        ("rust-socket2" ,rust-socket2-0.5)
                        ("rust-windows-sys" ,rust-windows-sys-0.48))))