From e4629ef43b96f0571f6781e86e647569a6b81c4d Mon Sep 17 00:00:00 2001 From: Ludovic Courtès Date: Sat, 29 Mar 2014 22:59:46 +0100 Subject: tests: Make sure 'guix archive --import' succeeds. * tests/guix-archive.sh: Check the exit value of 'guix archive --import'. --- tests/guix-archive.sh | 2 ++ 1 file changed, 2 insertions(+) (limited to 'tests/guix-archive.sh') 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 -- cgit v1.2.3