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 5F3E01F5A2 for ; Thu, 6 Feb 2020 09:18:37 +0000 (UTC) From: Eric Wong To: meta@public-inbox.org Subject: [PATCH] t/multi-mid: don't access ~/.public-inbox/config Date: Thu, 6 Feb 2020 09:18:37 +0000 Message-Id: <20200206091837.4957-1-e@yhbt.net> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit List-Id: It can cause unpredictable behavior and also slow things down. Followup-to: e4d3be19612b2082 ("t: localize the PI_CONFIG env") --- t/multi-mid.t | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/t/multi-mid.t b/t/multi-mid.t index 0d283a0d..94c0e0a2 100644 --- a/t/multi-mid.t +++ b/t/multi-mid.t @@ -48,8 +48,8 @@ for my $order ([$bad, $good], [$good, $bad]) { } my $rdr = { 1 => \(my $out = ''), 2 => \(my $err = '') }; my $cmd = [ '-convert', $ibx->{inboxdir}, "$tmpdir/v2" ]; - ok(run_script($cmd, undef, $rdr), - 'convert to v2'); + my $env = { PI_DIR => "$tmpdir/.public-inbox" }; + ok(run_script($cmd, $env, $rdr), 'convert to v2'); $err =~ s!\AW: $tmpdir/v1 not configured[^\n]+\n!!s; is($err, '', 'no errors or warnings from -convert'); $ibx->{version} = 2;