about summary refs log tree commit homepage
path: root/t
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2018-05-11 19:20:17 +0000
committerEric Wong <e@80x24.org>2018-05-11 19:23:09 +0000
commit38802cb8f2f9bf8f8c72c592bcc9407681fd8360 (patch)
tree8d2cc63f7a1ebefdbc5a798352c732984e733e9a /t
parent9814b8f8f9a2231004f4bf2760eea69cb28b9fcc (diff)
downloadpublic-inbox-38802cb8f2f9bf8f8c72c592bcc9407681fd8360.tar.gz
We can't expect ~/.public-inbox to exist for tests nor should
we be writing to non-temporary directories during tests.
Diffstat (limited to 't')
-rw-r--r--t/v2mda.t2
1 files changed, 2 insertions, 0 deletions
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]);