projects
/
public-inbox.git
/ commitdiff
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9427c80
)
t/mda_filter_rubylang.t: set PI_EMERGENCY for -mda
author
Eric Wong <e@80x24.org>
Mon, 7 Jan 2019 05:22:41 +0000 (
05:22
+0000)
committer
Eric Wong <e@80x24.org>
Mon, 7 Jan 2019 05:23:34 +0000 (
05:23
+0000)
Tests should not write to the default ~/.public-inbox/emergency
t/mda_filter_rubylang.t
patch
|
blob
|
history
diff --git
a/t/mda_filter_rubylang.t
b/t/mda_filter_rubylang.t
index 0fb65a42935bb26aafb4df84814fdbed3003e0a6..583a139f3b342ee7a6b55d85ae95c3563c327313 100644
(file)
--- 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);