summaryrefslogtreecommitdiff
path: root/tests/containers.scm
diff options
context:
space:
mode:
authorDavid Thompson <dthompson2@worcester.edu>2015-07-20 12:05:23 -0400
committerDavid Thompson <dthompson2@worcester.edu>2015-07-20 12:05:23 -0400
commit8bff3d1e44dfe72f1f74a8a1a4aa1cac4013b9c0 (patch)
tree520270bbf7d7d4ecd4c9b56019aa261af8c75577 /tests/containers.scm
parent7782d3a6ffd8d25371cc28834a4966ac302dd469 (diff)
downloadpatches-8bff3d1e44dfe72f1f74a8a1a4aa1cac4013b9c0.tar
patches-8bff3d1e44dfe72f1f74a8a1a4aa1cac4013b9c0.tar.gz
tests: Skip container tests if namespaces are not available.
* tests/containers.scm: Skip all tests if user namespaces do not exist.
Diffstat (limited to 'tests/containers.scm')
-rw-r--r--tests/containers.scm4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/containers.scm b/tests/containers.scm
index 43401a5f4d..cb1aeddcb1 100644
--- a/tests/containers.scm
+++ b/tests/containers.scm
@@ -26,6 +26,10 @@
(define (assert-exit x)
(primitive-exit (if x 0 1)))
+;; Skip these tests unless user namespaces are available.
+(unless (file-exists? "/proc/self/ns/user")
+ (exit 77))
+
(test-begin "containers")
(test-assert "call-with-container, user namespace"