guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

02/03: tests: Skip 'guix-container-environment.sh' when support is missi


From: Ludovic Courtès
Subject: 02/03: tests: Skip 'guix-container-environment.sh' when support is missing.
Date: Sat, 21 Nov 2015 21:26:20 +0000

civodul pushed a commit to branch master
in repository guix.

commit 6493fd04581a923d42a566a869b3490d3a159db7
Author: Ludovic Courtès <address@hidden>
Date:   Sat Nov 21 21:44:41 2015 +0100

    tests: Skip 'guix-container-environment.sh' when support is missing.
    
    Fixes <http://bugs.gnu.org/21410>.
    Reported by Alex Vong <address@hidden>.
    
    * tests/guix-environment-container.sh: Exit with 77 when
    '((@@ (guix scripts environment) assert-container-features))' fails.
---
 tests/guix-environment-container.sh |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)

diff --git a/tests/guix-environment-container.sh 
b/tests/guix-environment-container.sh
index 8b6f7cd..5670d01 100644
--- a/tests/guix-environment-container.sh
+++ b/tests/guix-environment-container.sh
@@ -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
 



reply via email to

[Prev in Thread] Current Thread [Next in Thread]