From 3f017d96973875b651d7dc456840d62c35968e2c Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Wed, 13 Oct 2021 10:16:09 +0000 Subject: t/lei-mirror: avoid reading ~/.public-inbox/config in test Oops, we shouldn't attempt to read a users' actual HOME when running -index, since mine has a bunch of invalid entries in there. --- t/lei-mirror.t | 1 + 1 file changed, 1 insertion(+) (limited to 't') diff --git a/t/lei-mirror.t b/t/lei-mirror.t index b449e0b4..294eb654 100644 --- a/t/lei-mirror.t +++ b/t/lei-mirror.t @@ -167,6 +167,7 @@ SKIP: { my $after = [ glob("$d/t1/*") ]; is_deeply($before, $after, 'no new files created'); + local $ENV{HOME} = $tmpdir; ok(run_script([qw(-index -Lbasic), "$d/t1"]), 'index v1'); ok(run_script([qw(-index -Lbasic), "$d/t2"]), 'index v2'); my $f = "$d/t1/public-inbox/msgmap.sqlite3"; -- cgit v1.2.3-24-ge0c7