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:
parent
7782d3a6ff
commit
8bff3d1e44
|
@ -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"
|
||||
|
|
Loading…
Reference in New Issue