]> Sergey Matveev's repositories - public-inbox.git/commitdiff
t/lei-mirror: avoid reading ~/.public-inbox/config in test
authorEric Wong <e@80x24.org>
Wed, 13 Oct 2021 10:16:09 +0000 (10:16 +0000)
committerEric Wong <e@80x24.org>
Wed, 13 Oct 2021 19:52:26 +0000 (19:52 +0000)
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

index b449e0b48a41eb8358c25bb047327c88acd177aa..294eb6542b2e6e50ed941553fa1e3650b72a9b02 100644 (file)
@@ -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";