[debsums] 01/07: Test suite refactoring: Minor performance tuning

Axel Beckert abe at deuxchevaux.org
Thu Mar 26 01:30:26 UTC 2015


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

abe pushed a commit to branch master
in repository debsums.

commit 1b4851bc77c5f15dd56081f5dd84e32d2d21ca10
Author: Axel Beckert <abe at deuxchevaux.org>
Date:   Thu Mar 26 02:02:04 2015 +0100

    Test suite refactoring: Minor performance tuning
---
 t/debsums.t | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/t/debsums.t b/t/debsums.t
index a7c48a4..6823e9a 100644
--- a/t/debsums.t
+++ b/t/debsums.t
@@ -26,8 +26,9 @@ foreach my $cmd (qw(./debsums /usr/bin/debsums)) {
 ok($command, "Command debsums found at $command");
 
 foreach my $state (qw(clean dirty)) {
-    $chroot = "t/fakechroots/$state";
     my $exit_code = $state eq 'clean' ? 0 : 2;
+    $chroot = "t/fakechroots/$state";
+    @command = ($command, "--root=$chroot");
 
     my $expected = <<"EOT";
 $chroot/usr/share/doc/fakepkg/copyright                           OK
@@ -45,7 +46,6 @@ EOT
         if $state eq 'clean';
 
     foreach my $pkg ('', 'fakepkg') {
-        @command = ($command, "--root=$chroot");
         @command = (@command, $pkg) if $pkg;
 
         # Test running without any further parameters

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



More information about the Pkg-perl-cvs-commits mailing list