From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on dcvr.yhbt.net X-Spam-Level: X-Spam-ASN: X-Spam-Status: No, score=-4.0 required=3.0 tests=ALL_TRUSTED,BAYES_00 shortcircuit=no autolearn=ham autolearn_force=no version=3.4.2 Received: from localhost (dcvr.yhbt.net [127.0.0.1]) by dcvr.yhbt.net (Postfix) with ESMTP id 9D016211B5 for ; Thu, 7 Feb 2019 21:38:25 +0000 (UTC) From: Eric Wong To: meta@public-inbox.org Subject: [PATCH 1/2] t/perf-msgview: don't warn about --unordered if skipping Date: Thu, 7 Feb 2019 21:38:24 +0000 Message-Id: <20190207213825.19332-1-e@80x24.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit List-Id: No point in making noise about something that isn't used. --- t/perf-msgview.t | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/t/perf-msgview.t b/t/perf-msgview.t index adeb7aa..4975305 100644 --- a/t/perf-msgview.t +++ b/t/perf-msgview.t @@ -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); -- EW