]> Sergey Matveev's repositories - public-inbox.git/commitdiff
t/perf-msgview: don't warn about --unordered if skipping
authorEric Wong <e@80x24.org>
Wed, 6 Feb 2019 23:12:10 +0000 (23:12 +0000)
committerEric Wong <e@80x24.org>
Thu, 7 Feb 2019 21:38:34 +0000 (21:38 +0000)
No point in making noise about something that isn't used.

t/perf-msgview.t

index adeb7aac78caef3401324346d4e466272fa09937..4975305ad16f36c510add459c1aeef543ff26cb9 100644 (file)
@@ -8,6 +8,9 @@ use PublicInbox::Inbox;
 use PublicInbox::View;
 require './t/common.perl';
 
+my $pi_dir = $ENV{GIANT_PI_DIR};
+plan skip_all => "GIANT_PI_DIR not defined for $0" unless $pi_dir;
+
 my @cat = qw(cat-file --buffer --batch-check --batch-all-objects);
 if (require_git(2.19, 1)) {
        push @cat, '--unordered';
@@ -16,9 +19,6 @@ if (require_git(2.19, 1)) {
 "git <2.19, cat-file lacks --unordered, locality suffers\n";
 }
 
-my $pi_dir = $ENV{GIANT_PI_DIR};
-plan skip_all => "GIANT_PI_DIR not defined for $0" unless $pi_dir;
-
 my $ibx = PublicInbox::Inbox->new({ mainrepo => $pi_dir, name => 'name' });
 my $git = $ibx->git;
 my $fh = $git->popen(@cat);