~ruther/guix-local

6493fd04581a923d42a566a869b3490d3a159db7 — Ludovic Courtès 10 years ago aabe6d3
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.
1 files changed, 6 insertions(+), 0 deletions(-)

M tests/guix-environment-container.sh
M tests/guix-environment-container.sh => tests/guix-environment-container.sh +6 -0
@@ 24,6 24,12 @@ set -e

guix environment --version

if ! guile -c '((@@ (guix scripts environment) assert-container-features))'
then
    # User containers are not supported; skip this test.
    exit 77
fi

tmpdir="t-guix-environment-$$"
trap 'rm -r "$tmpdir"' EXIT