From: Eric Wong Date: Mon, 7 Jan 2019 05:22:41 +0000 (+0000) Subject: t/mda_filter_rubylang.t: set PI_EMERGENCY for -mda X-Git-Tag: v1.2.0~421 X-Git-Url: http://www.git.stargrave.org/?a=commitdiff_plain;h=081a425975a71c98d2a872ec592e0987e87bec7f;p=public-inbox.git t/mda_filter_rubylang.t: set PI_EMERGENCY for -mda Tests should not write to the default ~/.public-inbox/emergency --- 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);