This is an automated email from the git hooks/post-receive script.

abe pushed a commit to branch master
in repository debsums.

commit 6816e722fc3eb4c540b4521f57439506472313e3
Author: Axel Beckert <a...@deuxchevaux.org>
Date:   Thu Mar 26 02:07:21 2015 +0100

    Add a check for handling unknown packages
---
 t/debsums.t | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/t/debsums.t b/t/debsums.t
index 6823e9a..d2372f9 100644
--- a/t/debsums.t
+++ b/t/debsums.t
@@ -45,6 +45,14 @@ EOT
     $expected_conffiles = remove_failed($expected_conffiles)
         if $state eq 'clean';
 
+    # Test running with an unknown package
+    run(@command, 'foobar');
+    is(stderr,
+       "debsums: package foobar is not installed\n",
+       'Warning on STDERR');
+    is(stdout, '', 'STDOUT is empty');
+    expected_rc(1);
+
     foreach my $pkg ('', 'fakepkg') {
         @command = (@command, $pkg) if $pkg;
 

-- 
Alioth's /usr/local/bin/git-commit-notice on 
/srv/git.debian.org/git/pkg-perl/packages/debsums.git

_______________________________________________
Pkg-perl-cvs-commits mailing list
Pkg-perl-cvs-commits@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-perl-cvs-commits

Reply via email to