diff options
author | Ludovic Courtès <ludo@gnu.org> | 2015-02-02 12:30:49 +0100 |
---|---|---|
committer | Ludovic Courtès <ludo@gnu.org> | 2015-02-02 12:46:36 +0100 |
commit | bd98ad1fbcc572a292bb98b2c667dcb48bf7cc49 (patch) | |
tree | 7d537d0983acc5b17a396002ce9223f83523fed1 | |
parent | 5f1f10c59d2b1bdc02f83abe9610d5ee77a83be2 (diff) | |
download | guix-bd98ad1fbcc572a292bb98b2c667dcb48bf7cc49.tar.gz guix-bd98ad1fbcc572a292bb98b2c667dcb48bf7cc49.tar.xz |
tests: Skip 'guix-register' when the socket name length is exceeded.
* tests/guix-register.sh: Before running 'guix-daemon', check whether
the socket name length exceeds the system limitation.
-rw-r--r-- | tests/guix-register.sh | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/tests/guix-register.sh b/tests/guix-register.sh index e99f5c6075..7084ac6b8c 100644 --- a/tests/guix-register.sh +++ b/tests/guix-register.sh @@ -1,5 +1,5 @@ # GNU Guix --- Functional package management for GNU -# Copyright © 2013, 2014 Ludovic Courtès <ludo@gnu.org> +# Copyright © 2013, 2014, 2015 Ludovic Courtès <ludo@gnu.org> # # This file is part of GNU Guix. # @@ -111,6 +111,14 @@ do export NIX_IGNORE_SYMLINK_STORE NIX_STORE_DIR NIX_STATE_DIR \ NIX_LOG_DIR NIX_DB_DIR + # Check whether we overflow the limitation on local socket name lengths. + if [ `echo "$NIX_STATE_DIR/daemon-socket/socket" | wc -c` -ge 108 ] + then + # Mark the test as skipped even though we already did some work so + # that the remainder is not silently skipped. + exit 77 + fi + guix-daemon --disable-chroot & subdaemon_pid=$! exit_hook="kill $subdaemon_pid" |