aboutsummaryrefslogtreecommitdiff
path: root/tests/containers.scm
diff options
context:
space:
mode:
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"