X-Git-Url: http://www.git.stargrave.org/?a=blobdiff_plain;f=t%2Findexlevels-mirror.t;h=ac85643d0423e82bcd7488fc1989f5f312960bc5;hb=88c7c7c26b44ee4c1141fddb628a518b4d4d21a4;hp=bd140cc427ba7c1a980c728bc89189344067547b;hpb=4ec05db787bfa6ec2a658d0f9ba3105b3acdca09;p=public-inbox.git
diff --git a/t/indexlevels-mirror.t b/t/indexlevels-mirror.t
index bd140cc4..ac85643d 100644
--- a/t/indexlevels-mirror.t
+++ b/t/indexlevels-mirror.t
@@ -1,5 +1,5 @@
#!perl -w
-# Copyright (C) 2019-2021 all contributors
+# Copyright (C) all contributors
# License: AGPL-3.0+
use strict;
use v5.10.1;
@@ -34,7 +34,7 @@ my $import_index_incremental = sub {
local $ENV{PI_CONFIG} = "$tmpdir/config";
# index master (required for v1)
- my @cmd = (qw(-index -j0), $ibx->{inboxdir}, "-L$level");
+ my @cmd = (qw(-index -j0 --dangerous), $ibx->{inboxdir}, "-L$level");
push @cmd, '-c' if have_xapian_compact;
ok(run_script(\@cmd, undef, { 2 => \$err }), 'index master');
my $ro_master = PublicInbox::Inbox->new({
@@ -158,7 +158,8 @@ my $import_index_incremental = sub {
SKIP: {
skip 'xapian-compact missing', 1 if !have_xapian_compact;
my $cmd = [ qw(-compact), $mirror ];
- ok(run_script($cmd, undef, { 2 => \$err}), "compact $level");
+ ok(run_script($cmd, undef, { 2 => \$err}), "compact $level")
+ or diag $err;
}
};