HCoop
/
jackhill
/
guix
/
guix.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a8afb9a
)
tests: Test the exit code of 'guix environment'.
author
Ludovic Courtès
<ludo@gnu.org>
Tue, 7 Jul 2015 20:51:33 +0000
(22:51 +0200)
committer
Ludovic Courtès
<ludo@gnu.org>
Tue, 7 Jul 2015 22:06:45 +0000
(
00:06
+0200)
This is a followup to
d2cef62
.
* tests/guix-environment.sh: Add test for the exit code.
tests/guix-environment.sh
patch
|
blob
|
blame
|
history
diff --git
a/tests/guix-environment.sh
b/tests/guix-environment.sh
index
08c97cb
..
32faf71
100644
(file)
--- a/
tests/guix-environment.sh
+++ b/
tests/guix-environment.sh
@@
-39,6
+39,14
@@
test "`wc -l < "$tmpdir/a"`" = 1
cmp "$tmpdir/a" "$tmpdir/b"
+# Make sure the exit value is preserved.
+if guix environment --ad-hoc guile-bootstrap --pure -E 'guile -c "(exit 42)"'
+then
+ false
+else
+ test $? = 42
+fi
+
if guile -c '(getaddrinfo "www.gnu.org" "80" AI_NUMERICSERV)' 2> /dev/null
then
# Compute the build environment for the initial GNU Make.