[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
01/01: tests: Skip container tests if namespaces are not available.
From: |
David Thompson |
Subject: |
01/01: tests: Skip container tests if namespaces are not available. |
Date: |
Mon, 20 Jul 2015 20:16:48 +0000 |
davexunit pushed a commit to branch master
in repository guix.
commit 8bff3d1e44dfe72f1f74a8a1a4aa1cac4013b9c0
Author: David Thompson <address@hidden>
Date: Mon Jul 20 12:05:23 2015 -0400
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 files changed, 4 insertions(+), 0 deletions(-)
diff --git a/tests/containers.scm b/tests/containers.scm
index 43401a5..cb1aedd 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"