diff options
author | Eric Wong <e@80x24.org> | 2021-09-14 02:39:04 +0000 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2021-09-14 02:56:54 +0000 |
commit | 8d914f55a254be8a30ab24b5beda4e4202aa1230 (patch) | |
tree | 07a7e1a93082c41f5077a934c6610684d232b4e6 /lib/PublicInbox/TestCommon.pm | |
parent | b9173c86876b74eb844441c94139cd623c58bda4 (diff) | |
download | public-inbox-8d914f55a254be8a30ab24b5beda4e4202aa1230.tar.gz |
We want to remove any inotify-watched files before removing ~/.local/lei/store/ipc.lock, since sto_done_request was failing on attempts to lock a non-existent lei/store/ipc.lock file.
Diffstat (limited to 'lib/PublicInbox/TestCommon.pm')
-rw-r--r-- | lib/PublicInbox/TestCommon.pm | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/PublicInbox/TestCommon.pm b/lib/PublicInbox/TestCommon.pm index d8346673..0ee4b228 100644 --- a/lib/PublicInbox/TestCommon.pm +++ b/lib/PublicInbox/TestCommon.pm @@ -567,7 +567,10 @@ SKIP: { } local $ENV{XDG_RUNTIME_DIR} = $daemon_xrd; $cb->(); - unless ($persist) { + if ($persist) { # remove before ~/.local gets removed + File::Path::rmtree([glob("$home/*")]); + File::Path::rmtree("$home/.config"); + } else { lei_ok(qw(daemon-pid), \"daemon-pid after $t"); chomp($daemon_pid = $lei_out); if (!$daemon_pid) { |