tests: Skip container tests if namespaces are not available.

* tests/containers.scm: Skip all tests if user namespaces do not exist.
This commit is contained in:
David Thompson 2015-07-20 12:05:23 -04:00
parent 7782d3a6ff
commit 8bff3d1e44
1 changed files with 4 additions and 0 deletions

View File

@ -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"