t/perf-msgview.t | 6 +++--- diff --git a/t/perf-msgview.t b/t/perf-msgview.t index adeb7aac78caef3401324346d4e466272fa09937..4975305ad16f36c510add459c1aeef543ff26cb9 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'; @@ -15,9 +18,6 @@ } else { warn "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;