From 38802cb8f2f9bf8f8c72c592bcc9407681fd8360 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Fri, 11 May 2018 19:20:17 +0000 Subject: t/v2mda: setup emergency Maildir for test We can't expect ~/.public-inbox to exist for tests nor should we be writing to non-temporary directories during tests. --- t/v2mda.t | 2 ++ 1 file changed, 2 insertions(+) diff --git a/t/v2mda.t b/t/v2mda.t index ca1bb09c..f386289a 100644 --- a/t/v2mda.t +++ b/t/v2mda.t @@ -36,6 +36,8 @@ ok(-f "blib/script/public-inbox-mda", '-mda exists'); my $main_bin = getcwd()."/t/main-bin"; local $ENV{PI_DIR} = "$tmpdir/foo"; local $ENV{PATH} = "$main_bin:blib/script:$ENV{PATH}"; +local $ENV{PI_EMERGENCY} = "$tmpdir/fail"; +ok(mkdir "$tmpdir/fail"); my @cmd = (qw(public-inbox-init -V2), $ibx->{name}, $ibx->{mainrepo}, 'http://localhost/test', $ibx->{address}->[0]); -- cgit v1.2.3-24-ge0c7