From 7fc042876bf00031d6b36b8d697984ce1ee1700e Mon Sep 17 00:00:00 2001 From: Nikita Karetnikov Date: Mon, 23 Sep 2013 22:56:21 +0000 Subject: [PATCH 1/3] tests: Test that '--list-generations' may not output anything. --- tests/guix-package.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/guix-package.sh b/tests/guix-package.sh index b09a9c0..e2c0374 100644 --- a/tests/guix-package.sh +++ b/tests/guix-package.sh @@ -85,6 +85,9 @@ then test "`guix package -p "$profile" -l | cut -f1 | grep guile | head -n1`" \ = " guile-bootstrap" + # Do not output anything when a generation does not exist. + test -z "`guix package -p "$profile" -l 42`" + # Remove a package. guix package --bootstrap -p "$profile" -r "guile-bootstrap" test -L "$profile-3-link" -- 1.7.9.5