From 8bff3d1e44dfe72f1f74a8a1a4aa1cac4013b9c0 Mon Sep 17 00:00:00 2001 From: David Thompson Date: Mon, 20 Jul 2015 12:05:23 -0400 Subject: tests: Skip container tests if namespaces are not available. * tests/containers.scm: Skip all tests if user namespaces do not exist. --- tests/containers.scm | 4 ++++ 1 file changed, 4 insertions(+) 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-module (test-containers) (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" -- cgit v1.2.3