environment: Correctly handle abnormal exits.
authorLudovic Courtès <ludo@gnu.org>
Sat, 21 Nov 2015 21:24:45 +0000 (22:24 +0100)
committerLudovic Courtès <ludo@gnu.org>
Sat, 21 Nov 2015 21:26:13 +0000 (22:26 +0100)
commit82e64fc14eec9f01f5fee12782046496ebed9c72
treec4d8dff78313e4102be683137d9c1a03450f6338
parent6493fd04581a923d42a566a869b3490d3a159db7
environment: Correctly handle abnormal exits.

Fixes <http://bugs.gnu.org/21958>.

* guix/scripts/environment.scm (status->exit-code): New procedure.
(exit/status, primitive-exit/status): Use it.
* tests/guix-environment-container.sh: Add test.
guix/scripts/environment.scm
tests/guix-environment-container.sh