about summary refs log tree commit homepage
path: root/t
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2019-11-29 10:14:08 +0000
committerEric Wong <e@80x24.org>2019-12-11 08:10:25 +0000
commite4d3be19612b20829426b129a2e1fb2316d38473 (patch)
tree3108560277a5da2a947042c3de741c73c713aa60 /t
parentf425bacfb75db2c454a6bc7b0a0845e7520e0a48 (diff)
downloadpublic-inbox-e4d3be19612b20829426b129a2e1fb2316d38473.tar.gz
We don't want the user's ~/.public-inbox/config to be read from
during tests.  I only noticed this because I had a non-existent
pathname for one of my inboxes :x

I've also verified this change by running "inotifywait
~/.public-inbox/config -m" in another terminal while running
"make check"; (perhaps a portable solution could make it
into the test suite).
Diffstat (limited to 't')
-rw-r--r--t/indexlevels-mirror.t1
-rw-r--r--t/xcpdb-reshard.t1
2 files changed, 2 insertions, 0 deletions
diff --git a/t/indexlevels-mirror.t b/t/indexlevels-mirror.t
index f1c338e1..3d4813be 100644
--- a/t/indexlevels-mirror.t
+++ b/t/indexlevels-mirror.t
@@ -32,6 +32,7 @@ sub import_index_incremental {
         my ($v, $level) = @_;
         my $this = "pi-$v-$level-indexlevels";
         my ($tmpdir, $for_destroy) = tmpdir();
+        local $ENV{PI_CONFIG} = "$tmpdir/config";
         my $ibx = PublicInbox::Inbox->new({
                 inboxdir => "$tmpdir/testbox",
                 name => $this,
diff --git a/t/xcpdb-reshard.t b/t/xcpdb-reshard.t
index ebf156a3..a4ab35d6 100644
--- a/t/xcpdb-reshard.t
+++ b/t/xcpdb-reshard.t
@@ -25,6 +25,7 @@ my $mime = PublicInbox::MIME->create(
 
 my ($this) = (split('/', $0))[-1];
 my ($tmpdir, $for_destroy) = tmpdir();
+local $ENV{PI_CONFIG} = "$tmpdir/config";
 my $ibx = PublicInbox::Inbox->new({
         inboxdir => "$tmpdir/testbox",
         name => $this,