~ruther/guix-local

8bff3d1e44dfe72f1f74a8a1a4aa1cac4013b9c0 — David Thompson 10 years ago 7782d3a
tests: Skip container tests if namespaces are not available.

* tests/containers.scm: Skip all tests if user namespaces do not exist.
1 files changed, 4 insertions(+), 0 deletions(-)

M tests/containers.scm
M tests/containers.scm => tests/containers.scm +4 -0
@@ 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"