From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on dcvr.yhbt.net X-Spam-Level: X-Spam-ASN: X-Spam-Status: No, score=-4.0 required=3.0 tests=ALL_TRUSTED,BAYES_00 shortcircuit=no autolearn=ham autolearn_force=no version=3.4.2 Received: from localhost (dcvr.yhbt.net [127.0.0.1]) by dcvr.yhbt.net (Postfix) with ESMTP id 631561FA11 for ; Wed, 13 Oct 2021 10:16:12 +0000 (UTC) From: Eric Wong To: meta@public-inbox.org Subject: [PATCH 5/7] t/lei-mirror: avoid reading ~/.public-inbox/config in test Date: Wed, 13 Oct 2021 10:16:09 +0000 Message-Id: <20211013101611.22962-6-e@80x24.org> In-Reply-To: <20211013101611.22962-1-e@80x24.org> References: <20211013101611.22962-1-e@80x24.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit List-Id: 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(+) 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";