mirror of
https://git.savannah.gnu.org/git/guix.git
synced 2026-04-06 21:20:33 +02:00
build: container: Fix call-with-clean-exit.
Before, call-with-clean-exit would *always* return an exit code of 1. * gnu/build/linux-container.scm (call-with-clean-exit): Exit with status code of 0 if thunk does not throw an exception. * tests/containers.scm: Add test.
This commit is contained in:
@@ -34,6 +34,10 @@
|
||||
|
||||
(test-begin "containers")
|
||||
|
||||
(test-assert "call-with-container, exit with 0 when there is no error"
|
||||
(zero?
|
||||
(call-with-container '() (const #t) #:namespaces '(user))))
|
||||
|
||||
(test-assert "call-with-container, user namespace"
|
||||
(zero?
|
||||
(call-with-container '()
|
||||
|
||||
Reference in New Issue
Block a user