From: Eric Wong Date: Thu, 24 Aug 2023 22:07:37 +0000 (+0000) Subject: t/cindex: avoid reading default PI_CONFIG X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=22aad488a173faa0fb4e946b1b4441f78c9c3098;p=thirdparty%2Fpublic-inbox.git t/cindex: avoid reading default PI_CONFIG I sometimes test on a machine with a broken ~/.public-inbox/config to detect inadvertant accesses in tests --- diff --git a/t/cindex.t b/t/cindex.t index 473287aa6..eca6cda2a 100644 --- a/t/cindex.t +++ b/t/cindex.t @@ -11,6 +11,7 @@ require PublicInbox::Import; my ($tmp, $for_destroy) = tmpdir(); my $pwd = getcwd(); my @unused_keys = qw(last_commit has_threadid skip_docdata); +local $ENV{PI_CONFIG} = '/dev/null'; # I reworked CodeSearchIdx->shard_worker to handle empty trees # in the initial commit generated by cvs2svn for xapian.git