mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-11-07 15:36:20 -05:00
tests: Skip 'guix-package-net.sh' when prerequisites aren't met.
* tests/guix-package-net.sh: Reinstate networking and shebang test that
inadvertently vanished in commit 57b8623
.
This commit is contained in:
parent
d525da858d
commit
0b131612d5
1 changed files with 8 additions and 0 deletions
|
@ -37,6 +37,14 @@ shebang_too_long ()
|
||||||
-ge 128
|
-ge 128
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if ! guile -c '(getaddrinfo "www.gnu.org" "80" AI_NUMERICSERV)' 2> /dev/null \
|
||||||
|
|| shebang_too_long
|
||||||
|
then
|
||||||
|
# Skipping.
|
||||||
|
exit 77
|
||||||
|
fi
|
||||||
|
|
||||||
|
|
||||||
profile="t-profile-$$"
|
profile="t-profile-$$"
|
||||||
rm -f "$profile"
|
rm -f "$profile"
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue