X-Git-Url: http://www.git.stargrave.org/?a=blobdiff_plain;f=t%2Freplace.t;h=085b49eea102c0cf7722bd4c89ac5de14515288c;hb=a65ebdc3a1f064bab0cddf64b34caad49f1c4c9c;hp=039c6bc6fde54d21eb3558f3ab61c47e8e3b49dd;hpb=ad6f26f3b9f0e428020d05667987556f8fcbec2f;p=public-inbox.git diff --git a/t/replace.t b/t/replace.t index 039c6bc6..085b49ee 100644 --- a/t/replace.t +++ b/t/replace.t @@ -5,12 +5,11 @@ use warnings; use Test::More; use PublicInbox::MIME; use PublicInbox::InboxWritable; -require './t/common.perl'; +use PublicInbox::TestCommon; +use Cwd qw(abs_path); require_git(2.6); # replace is v2 only, for now... -foreach my $mod (qw(DBD::SQLite)) { - eval "require $mod"; - plan skip_all => "$mod missing for $0" if $@; -} +require_mods(qw(DBD::SQLite)); +local $ENV{HOME} = abs_path('t'); sub test_replace ($$$) { my ($v, $level, $opt) = @_; @@ -96,8 +95,9 @@ EOF for my $dir (glob("$ibx->{inboxdir}/git/*.git")) { my ($bn) = ($dir =~ m!([^/]+)\z!); - is(system(qw(git --git-dir), $dir, qw(fsck --strict)), 0, - "git fsck is clean in epoch $bn"); + is(system(qw(git --git-dir), $dir, + qw(fsck --strict --no-progress)), + 0, "git fsck is clean in epoch $bn"); } my $thread_b = $ibx->over->get_thread('replace@example.com');