]> git.ipfire.org Git - thirdparty/public-inbox.git/commitdiff
t/cindex: avoid reading default PI_CONFIG
authorEric Wong <e@80x24.org>
Thu, 24 Aug 2023 22:07:37 +0000 (22:07 +0000)
committerEric Wong <e@80x24.org>
Fri, 25 Aug 2023 19:39:51 +0000 (19:39 +0000)
I sometimes test on a machine with a broken
~/.public-inbox/config to detect inadvertant accesses in tests

t/cindex.t

index 473287aa6c985073c64c3a1655605685fcf29778..eca6cda2ada700f0b4ed017f8a6c047eb358292f 100644 (file)
@@ -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