build: Skip one 'package-source-derivation' test when networking is missing.
authorLudovic Courtès <ludo@gnu.org>
Wed, 11 Dec 2013 12:55:49 +0000 (13:55 +0100)
committerLudovic Courtès <ludo@gnu.org>
Wed, 11 Dec 2013 12:55:49 +0000 (13:55 +0100)
* tests/packages.scm ("package-source-derivation, snippet"): Skip when
  networking is missing.

tests/packages.scm

index 04e3b0b..6ac215b 100644 (file)
     (and (direct-store-path? source)
          (string-suffix? "utils.scm" source))))
 
+(unless (false-if-exception (getaddrinfo "www.gnu.org" "80" AI_NUMERICSERV))
+  (test-skip 1))
 (test-equal "package-source-derivation, snippet"
   "OK"
   (let* ((file   (search-bootstrap-binary "guile-2.0.9.tar.xz"