]> Sergey Matveev's repositories - public-inbox.git/commitdiff
t/v2reindex: avoid reading ~/.public-inbox/config in test
authorEric Wong <e@80x24.org>
Fri, 12 Mar 2021 03:52:28 +0000 (03:52 +0000)
committerEric Wong <e@80x24.org>
Fri, 12 Mar 2021 07:57:50 +0000 (03:57 -0400)
t/v2reindex.t

index 56540c8b1847bbd4ea7aad3d6c0f04cb14569781..a931225c74b7e479e69436bf47f41eac6ee3c55a 100644 (file)
@@ -544,7 +544,8 @@ $check_rethread->('3-headed-monster once');
 $check_rethread->('3-headed-monster twice');
 
 my $rdr = { 2 => \(my $err = '') };
-ok(run_script([qw(-index --reindex --xapian-only), $inboxdir], undef, $rdr),
+my $env = { PI_CONFIG => '/dev/null' };
+ok(run_script([qw(-index --reindex --xapian-only), $inboxdir], $env, $rdr),
        '--xapian-only works');
 is($err, '', 'no errors from --xapian-only');