summaryrefslogtreecommitdiff
path: root/tests/guix-environment-container.sh
diff options
context:
space:
mode:
authorLudovic Courtès <ludo@gnu.org>2015-11-21 21:44:41 +0100
committerLudovic Courtès <ludo@gnu.org>2015-11-21 22:26:13 +0100
commit6493fd04581a923d42a566a869b3490d3a159db7 (patch)
tree5147d96e7d84c8cf631e7cd6f385ecb710de67d7 /tests/guix-environment-container.sh
parentaabe6d380154e3c16b2d97abdbc48e9d0776d3de (diff)
tests: Skip 'guix-container-environment.sh' when support is missing.
Fixes <http://bugs.gnu.org/21410>. Reported by Alex Vong <alexvong1995@gmail.com>. * tests/guix-environment-container.sh: Exit with 77 when '((@@ (guix scripts environment) assert-container-features))' fails.
Diffstat (limited to 'tests/guix-environment-container.sh')
-rw-r--r--tests/guix-environment-container.sh6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/guix-environment-container.sh b/tests/guix-environment-container.sh
index 8b6f7cd38f5..5670d011179 100644
--- a/tests/guix-environment-container.sh
+++ b/tests/guix-environment-container.sh
@@ -24,6 +24,12 @@ set -e
24 24
25guix environment --version 25guix environment --version
26 26
27if ! guile -c '((@@ (guix scripts environment) assert-container-features))'
28then
29 # User containers are not supported; skip this test.
30 exit 77
31fi
32
27tmpdir="t-guix-environment-$$" 33tmpdir="t-guix-environment-$$"
28trap 'rm -r "$tmpdir"' EXIT 34trap 'rm -r "$tmpdir"' EXIT
29 35