diff options
| author | Ludovic Courtès <ludo@gnu.org> | 2025-08-29 14:14:18 +0200 |
|---|---|---|
| committer | Ludovic Courtès <ludo@gnu.org> | 2025-09-03 12:34:13 +0200 |
| commit | 128f07cd011d37cd63b2650ffe798ff83f3d1803 (patch) | |
| tree | 7b508b61dd88e3b11dfffef48f61babc4fb724fa /tests/guix-pack-localstatedir.sh | |
| parent | f7f8db1d8c629b1a5313abf59ab78143cb7ac04d (diff) | |
tests: Pass ‘--timeout’ for builds with the host store.
This ensures ‘make check’ doesn’t accidentally start building the world.
* tests/guix-environment-container.sh (GUIX_BUILD_OPTIONS): New environment
variable.
* tests/guix-home.sh (GUIX_BUILD_OPTIONS): Likewise.
* tests/guix-pack-localstatedir.sh (GUIX_BUILD_OPTIONS): Likewise.
* tests/guix-pack-relocatable.sh (GUIX_BUILD_OPTIONS): Likewise.
Change-Id: If8afe9cfc5c0f1f72cd6f3d39dd5d4f6415d1e02
Diffstat (limited to 'tests/guix-pack-localstatedir.sh')
| -rw-r--r-- | tests/guix-pack-localstatedir.sh | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/guix-pack-localstatedir.sh b/tests/guix-pack-localstatedir.sh index 042887ea9b3..c9e13bbc879 100644 --- a/tests/guix-pack-localstatedir.sh +++ b/tests/guix-pack-localstatedir.sh | |||
| @@ -31,7 +31,8 @@ storedir="`guile -c '(use-modules (guix config))(display %storedir)'`" | |||
| 31 | localstatedir="`guile -c '(use-modules (guix config))(display %localstatedir)'`" | 31 | localstatedir="`guile -c '(use-modules (guix config))(display %localstatedir)'`" |
| 32 | NIX_STORE_DIR="$storedir" | 32 | NIX_STORE_DIR="$storedir" |
| 33 | GUIX_DAEMON_SOCKET="$localstatedir/guix/daemon-socket/socket" | 33 | GUIX_DAEMON_SOCKET="$localstatedir/guix/daemon-socket/socket" |
| 34 | export NIX_STORE_DIR GUIX_DAEMON_SOCKET | 34 | GUIX_BUILD_OPTIONS="--timeout=180" # set an upper limit |
| 35 | export NIX_STORE_DIR GUIX_DAEMON_SOCKET GUIX_BUILD_OPTIONS | ||
| 35 | 36 | ||
| 36 | if ! guile -c '(use-modules (guix)) (exit (false-if-exception (open-connection)))' | 37 | if ! guile -c '(use-modules (guix)) (exit (false-if-exception (open-connection)))' |
| 37 | then | 38 | then |
