From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on dcvr.yhbt.net X-Spam-Level: X-Spam-Status: No, score=-4.0 required=3.0 tests=ALL_TRUSTED,BAYES_00 shortcircuit=no autolearn=ham autolearn_force=no version=3.4.2 Received: from localhost (dcvr.yhbt.net [127.0.0.1]) by dcvr.yhbt.net (Postfix) with ESMTP id C04B51F9FD for ; Fri, 12 Mar 2021 03:52:28 +0000 (UTC) From: Eric Wong To: meta@public-inbox.org Subject: [PATCH] t/v2reindex: avoid reading ~/.public-inbox/config in test Date: Fri, 12 Mar 2021 03:52:28 +0000 Message-Id: <20210312035228.618-1-e@80x24.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit List-Id: --- t/v2reindex.t | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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');