diff options
author | Eric Wong <e@80x24.org> | 2019-01-07 05:22:41 +0000 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2019-01-07 05:23:34 +0000 |
commit | 081a425975a71c98d2a872ec592e0987e87bec7f (patch) | |
tree | cd57b56cd690b0bbedaa2072133fd4cbcf4e2953 /t | |
parent | 9427c808130255911dd3e4eee99b6f2c1cc42066 (diff) | |
download | public-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.t | 1 |
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); |