]> git.ipfire.org Git - thirdparty/public-inbox.git/commitdiff
t/init.t: don't modify $HOME/.public-inbox/config in test
authorEric Wong <e@80x24.org>
Mon, 23 Oct 2023 08:58:12 +0000 (08:58 +0000)
committerEric Wong <e@80x24.org>
Mon, 23 Oct 2023 17:07:42 +0000 (17:07 +0000)
Oops :x

t/init.t

index 177c22b663d47d3fc1b388402b12e52640b4d629..3d2c7873c43e7a26c1893b5f415944988ed091a2 100644 (file)
--- a/t/init.t
+++ b/t/init.t
@@ -217,6 +217,7 @@ SKIP: {
 }
 
 {
+       local $ENV{PI_DIR} = "$tmpdir/.public-inbox/";
        my $cmd = [ qw(-init -C), "$tmpdir", qw(chdirlist chdirlist),
                   qw(http://example.com/chdirlist chdirlist@example.com)];
        ok(run_script($cmd), '-init with -C (chdir)');