aboutsummaryrefslogtreecommitdiff
path: root/tests/guix-archive.sh
diff options
context:
space:
mode:
authorLudovic Courtès <ludo@gnu.org>2014-03-29 22:59:46 +0100
committerLudovic Courtès <ludo@gnu.org>2014-03-29 22:59:46 +0100
commite4629ef43b96f0571f6781e86e647569a6b81c4d (patch)
tree7b860e492839e6683d1f8ac22289e7ebf5ad4a36 /tests/guix-archive.sh
parentc9e2b0b16e3efe319d437d9a96c8ce65ed145e8f (diff)
downloadguix-e4629ef43b96f0571f6781e86e647569a6b81c4d.tar
guix-e4629ef43b96f0571f6781e86e647569a6b81c4d.tar.gz
tests: Make sure 'guix archive --import' succeeds.
* tests/guix-archive.sh: Check the exit value of 'guix archive --import'.
Diffstat (limited to 'tests/guix-archive.sh')
-rw-r--r--tests/guix-archive.sh2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/guix-archive.sh b/tests/guix-archive.sh
index 0de7395145..d4259b8677 100644
--- a/tests/guix-archive.sh
+++ b/tests/guix-archive.sh
@@ -39,6 +39,8 @@ cmp "$archive" "$archive_alt"
guix archive --export `guix build guile-bootstrap` > "$archive_alt"
cmp "$archive" "$archive_alt"
+# Check the exit value and stderr upon import.
+guix archive --import < "$archive"
guix archive --import < "$archive" 2>&1 | grep "import.*guile-bootstrap"
if guix archive something-that-does-not-exist