tests: Factorize the network reachability test.
authorLudovic Courtès <ludo@gnu.org>
Mon, 23 Feb 2015 22:41:26 +0000 (23:41 +0100)
committerLudovic Courtès <ludo@gnu.org>
Mon, 23 Feb 2015 23:01:34 +0000 (00:01 +0100)
commit12d720fd1a9c43019f2d5afa051b45c7633b3ab0
treeb79f77aadfa44872d5c5aaf69ca99d6756f57c92
parent49685cae2bbe0384d4e0e46d38e9d0e1327e5225
tests: Factorize the network reachability test.

* guix/tests.scm (network-reachable?): New procedure.
* tests/builders.scm (network-reachable?): Remove.
  Replace references to it with calls to the new 'network-reachable?'
  procedure.
* tests/derivations.scm (%coreutils): Use 'network-reachable?' instead
  of 'getaddrinfo'.
* tests/packages.scm: Likewise.
* tests/union.scm: Likewise.
guix/tests.scm
tests/builders.scm
tests/derivations.scm
tests/packages.scm
tests/union.scm