about summary refs log tree commit homepage
path: root/t
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2019-01-07 05:22:41 +0000
committerEric Wong <e@80x24.org>2019-01-07 05:23:34 +0000
commit081a425975a71c98d2a872ec592e0987e87bec7f (patch)
treecd57b56cd690b0bbedaa2072133fd4cbcf4e2953 /t
parent9427c808130255911dd3e4eee99b6f2c1cc42066 (diff)
downloadpublic-inbox-081a425975a71c98d2a872ec592e0987e87bec7f.tar.gz
Tests should not write to the default ~/.public-inbox/emergency
Diffstat (limited to 't')
-rw-r--r--t/mda_filter_rubylang.t1
1 files changed, 1 insertions, 0 deletions
diff --git a/t/mda_filter_rubylang.t b/t/mda_filter_rubylang.t
index 0fb65a42..583a139f 100644
--- a/t/mda_filter_rubylang.t
+++ b/t/mda_filter_rubylang.t
@@ -16,6 +16,7 @@ use_ok 'PublicInbox::V2Writable';
 my $tmpdir = tempdir('mda-XXXXXX', TMPDIR => 1, CLEANUP => 1);
 my $pi_config = "$tmpdir/pi_config";
 local $ENV{PI_CONFIG} = $pi_config;
+local $ENV{PI_EMERGENCY} = "$tmpdir/emergency";
 my $mda = 'blib/script/public-inbox-mda';
 my @cfg = ('git', 'config', "--file=$pi_config");
 is(system(@cfg, 'publicinboxmda.spamcheck', 'none'), 0);