From: Eric Wong Date: Fri, 12 Mar 2021 03:52:28 +0000 (+0000) Subject: t/v2reindex: avoid reading ~/.public-inbox/config in test X-Git-Tag: v1.7.0~1014 X-Git-Url: http://www.git.stargrave.org/?p=public-inbox.git;a=commitdiff_plain;h=d671f305c4835553bc9ede8f71ed2a24072533a3 t/v2reindex: avoid reading ~/.public-inbox/config in test --- diff --git a/t/v2reindex.t b/t/v2reindex.t index 56540c8b..a931225c 100644 --- a/t/v2reindex.t +++ b/t/v2reindex.t @@ -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');