diff options
author | Eric Wong <e@80x24.org> | 2018-05-11 19:20:17 +0000 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2018-05-11 19:23:09 +0000 |
commit | 38802cb8f2f9bf8f8c72c592bcc9407681fd8360 (patch) | |
tree | 8d2cc63f7a1ebefdbc5a798352c732984e733e9a | |
parent | 9814b8f8f9a2231004f4bf2760eea69cb28b9fcc (diff) | |
download | public-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.
-rw-r--r-- | t/v2mda.t | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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]); |