Skip to content

Commit

Permalink
FIXME: Re-evaluate these lines
Browse files Browse the repository at this point in the history
  • Loading branch information
exodist committed Jun 26, 2024
1 parent 19bbc28 commit bde347f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
4 changes: 3 additions & 1 deletion lib/App/Yath.pm
Original file line number Diff line number Diff line change
Expand Up @@ -537,7 +537,9 @@ sub run_command {

unless ($settings->harness->keep_dirs) {
remove_tree($settings->harness->workdir, {safe => 1, keep_root => 0});
remove_tree($settings->harness->tmpdir, {safe => 1, keep_root => 0});

# Fixme - breaks server with ephemeral db
#remove_tree($settings->harness->tmpdir, {safe => 1, keep_root => 0});
}

return $exit;
Expand Down
5 changes: 3 additions & 2 deletions lib/App/Yath/Command/start.pm
Original file line number Diff line number Diff line change
Expand Up @@ -189,8 +189,9 @@ sub become_collector {
remove_tree($settings->harness->workdir, {safe => 1, keep_root => 0})
unless $settings->harness->keep_dirs;

remove_tree($settings->harness->tmpdir, {safe => 1, keep_root => 0})
unless $settings->harness->keep_dirs;
# FIXME: This breaks server with ephemeral db
#remove_tree($settings->harness->tmpdir, {safe => 1, keep_root => 0})
# unless $settings->harness->keep_dirs;

return $exit;
}
Expand Down

0 comments on commit bde347f

Please sign in to comment.