pack: 'guix pack -R' wrapper correctly reports exit code.
authorLudovic Courtès <ludovic.courtes@inria.fr>
Fri, 24 Apr 2020 12:30:38 +0000 (14:30 +0200)
committerLudovic Courtès <ludo@gnu.org>
Fri, 24 Apr 2020 14:21:13 +0000 (16:21 +0200)
commit2520059bdb43fa1663ce102f3f4c442d4918c32b
tree6b5038f9e65c49c862dfae705a2eaa57b9351a1b
parent193192ca77bffddd241b6706df21b5e8bccc4cce
pack: 'guix pack -R' wrapper correctly reports exit code.

Fixes <https://bugs.gnu.org/40816>.
Reported by Jan (janneke) Nieuwenhuizen <janneke@gnu.org>.

* gnu/packages/aux-files/run-in-namespace.c (main): In the 'default'
case, check 'WIFEXITED (status)' and exit with the corresponding code in
that case.  Exit with 255 in other cases.
* tests/guix-pack-relocatable.sh: Add test.
gnu/packages/aux-files/run-in-namespace.c
tests/guix-pack-relocatable.sh