about summary refs log tree commit homepage
diff options
context:
space:
mode:
authorEric Wong <e@yhbt.net>2020-02-06 09:18:37 +0000
committerEric Wong <e@yhbt.net>2020-02-06 19:10:51 +0000
commit314079846791633be4c59932c7eefa6b242cb2ca (patch)
tree4fc7f48cf6adc1ff0fa3f90f8f87f0fe03c849fe
parentb7678f950923a0e6fb59a8d17f21292cdb143d63 (diff)
downloadpublic-inbox-314079846791633be4c59932c7eefa6b242cb2ca.tar.gz
It can cause unpredictable behavior and also slow things down.

Followup-to: e4d3be19612b2082 ("t: localize the PI_CONFIG env")
-rw-r--r--t/multi-mid.t4
1 files 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;